You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to you! #19 was a recent improvement for the inversed side of the ManytoMany. The code should be similar for the inversed side of ManyToOne (OneToMany). @RuSPanzer isn't it?
If OneToMany and ManyToOne bidirectional relations, just mark onSoftDelete in mapped side (entity with ManyToOne annotation).
If reference unidirectional... Seems to need to be removed all dependent entities with $collection->clear(). it's more like mapped side MTM.
Currently ManyToOne, ManyToMany and OneToOne are supported.
Annotation on OneToMany relations
Currently the annotation is ignored if you use it on an OneToMany relation.
Workaround
You need to set the annotation to the mapped side (ManyToOne) instead of the inversed side (OneToMany).
Suggestion
There should be support for "OneToMany" relations.
OR
There should be a error message to warn the developer about the mistake.
The text was updated successfully, but these errors were encountered: