Closed MartinHlavna closed 5 years ago
Thanks for the PR!
It only fixes part of the problem, right?
You're welcome. About fixing part of the problem - I have created two issues yesterday #99 which is fixed by this PR, and #101 which is another problem that I have realized during implementation of this fix.
Ok. Are you planning to send a PR for #101 or should I fix it?
In case of optional ManyToMany relation,remove with cascade would fail if there were no entities in relation.
Wrapping deletion of pivot entities in if fixes this issue by not executing unnecessary delete statement.