mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-893: Feature Request: Automatic update of bidirectional associations. #1107
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 25, 2010).
Jira issue originally created by user dalvarez:
This is a feature request.
It would be nice to have bidirectional associations updated automatically, i. e. have updates to one end reflected on the other.
This is a basic and natural feature, and I don't see the point of not supporting it, as Doctrine 2 knows about the bidirectionality anyway since it is declared.
It is just a pain to have to set association values on two objects always, once you want to work in-memory with an object graph.
Why make the user bother about it? If there are special circumstances where we don't want objects to be changed implicitly (for whatever reason) it could still be made optional.