#1386: Deleted records are re-inserted on unitOfWork->saveAll()
-----------------------------------+----------------------------------------
Reporter: tetikr | Owner: romanb
Type: defect | Status: new
Priority: critical | Milestone: Unknown
Component: Record | Version: 1.0
Keywords: | Has_test: 0
Mystatus: Pending Core Response | Has_patch: 0
-----------------------------------+----------------------------------------
I execute this two lines:
$record->delete();
--> issues DELETE FROM...
--> marks record TCLEAN
--> removes the record from table's identity map, BUT it remains in the
table's repository
$unitOfWork->saveAll();
--> uses foreach(getRepository()...) which contains the deleted record
causing it to be re-inserted = BUG
BTW: I don't understand why there is the identity map and the repository.
Seems it's the same.
Thanks for reply, keep up the good work!
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1386>
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
-~----------~----~----~----~------~----~------~--~---