bashleigh / typeorm-polymorphic

Typeorm polymorphic relationship management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polymorphic from parent not work

devmarcellus opened this issue · comments

when i create children from parent children not save

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

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 🙏

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