Jaguar-dart / jaguar_orm

Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
https://jaguar-dart.github.io
BSD 3-Clause "New" or "Revised" License
217 stars 52 forks source link

Fix of issue #101 #106

Closed MartinHlavna closed 5 years ago

MartinHlavna commented 5 years ago

In case of ManyToMany relation, other side of relation will always be deleted when cascading removal, even if another relation exists.

In addition to this, there may be use cases in which you don't want to remove orphaned entities. Because of this, a new optional bool parameter orphanRemoval has been added to methods remove and detachXXX.

jaumard commented 5 years ago

please regenerate also the embedded example, it will be easier to see first if it works (generate something that at least compile) and will be able to see more easily what the output of this. Thanks

tejainece commented 5 years ago

I will review it, test it and publish it over the coming weekend. Sorry for the delay.

hjJunior commented 5 years ago

Any update here?

tejainece commented 5 years ago

Thanks for the pull request. It has been absorbed.

tejainece commented 5 years ago

Thanks for the pull request. It has been absorbed.