Ticket #1419 (closed defect: fixed)
Related Objects are not saved if Parent is not Modified.
| Reported by: | buennagelj | Owned by: | romanb |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.0-ALPHA1 |
| Component: | Relations | Version: | 1.0.0 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description (last modified by jwage) (diff)
When I load a graph of related objects (e.g. One-To-Many) and change one of the child objects, the changes are not saved when I call save() on the root object.
This is because of a safeguard against endless recursion in the UnitOfWork?, that will stop traversing the object graph as soon as it finds an object that is not modified. The easiest fix would be to remove the check for isModified(), but then you'd be vulnerable to cyclic relationship graphs. I don't know how to cleverly fix this...
Change History
Note: See
TracTickets for help on using
tickets.