#1587: using delete() for 1:n-relations does not update main object
-------------------------+--------------------------------------------------
Reporter: floriank | Owner: romanb
Type: defect | Status: closed
Priority: major | Milestone: 1.0.4
Component: Record | Version: 1.0.3
Resolution: worksforme | Keywords: deleting related records
Has_test: 1 | Mystatus: Pending Core Response
Has_patch: 0 |
-------------------------+--------------------------------------------------
Changes (by floriank):
* status: new => closed
* resolution: => worksforme
Comment:
I found a workaround for my problem: If i use
{{{
unset($user->emails[0]);
}}}
instead of
{{{
$user->emails[0]->delete();
}}}
everything is working fine. I suggest you change the documentation at
6.1.4. to avoid any problems with this.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1587#comment:1>
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
-~----------~----~----~----~------~----~------~--~---