Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polymorphic from parent not work #23

Open
devmarcellus opened this issue Nov 22, 2021 · 3 comments
Open

Polymorphic from parent not work #23

devmarcellus opened this issue Nov 22, 2021 · 3 comments

Comments

@devmarcellus
Copy link

when i create children from parent children not save

@iccoleman
Copy link

@devmarcellus did you figure this out? I'm also having issues with cascade save from the parent

@iccoleman
Copy link

iccoleman commented Dec 13, 2022

With the newest version of @nestjs/typeorm 9.0.1 I suspect it has something to do with the way I'm extending AbstractPolymorphicRepository

The methodology to extend in the readme has since been deprecated, instead I'm using
const entityRepository = manager.getRepository(Entity).extend(AbstractPolymorphicRepository<Entity>)

Would love for some guidance @bashleigh 🙏

@lowbits
Copy link

lowbits commented Jan 30, 2023

Have the same issue, do you have any idea?
So creating is working but saving not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants