typeorm-polymorphic icon indicating copy to clipboard operation
typeorm-polymorphic copied to clipboard

Polymorphic from parent not work

Open devmarcellus opened this issue 3 years ago • 3 comments

when i create children from parent children not save

devmarcellus avatar Nov 22 '21 17:11 devmarcellus

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

iccoleman avatar Dec 13 '22 17:12 iccoleman

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 🙏

iccoleman avatar Dec 13 '22 17:12 iccoleman

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

lowbits avatar Jan 30 '23 11:01 lowbits