[DDC-2297] Add ConstraintException for parent row Created: 15/Feb/13 Updated: 15/Feb/13 Resolved: 15/Feb/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Daniel Lima||Assignee:||Benjamin Eberlei|
Currently there is no constraint check for entities that depends another one.
This exception could be thrown in $em->flush(); or could look like:
I think this functionality could be implemented through metadata on any sides of the relationship or on the @Entity mapping.
I know that is more app business logic related, but is it possible to implement this feature in next releases?
|Comment by Benjamin Eberlei [ 15/Feb/13 ]|
This is responsiblity of the the application developer.
You can implement this generically using parts of the API shown below: