#1419: Related Objects are not saved if Parent is not Modified.
-----------------------------------+----------------------------------------
Reporter: buennagelj | Owner: romanb
Type: defect | Status: new
Priority: major | Milestone:
Component: Relations | Version: 1.0
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------+----------------------------------------
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...
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1419>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---