[PHPCR-63] event system: prePersist and postPersist Created: 11/Apr/12 Updated: 22/May/12 Resolved: 22/May/12 |
|
| Status: | Closed |
| Project: | Doctrine PHPCR |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | David Buchmann | Assignee: | Lukas Kahwe |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
according to http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/events.html#prepersist the persist event is only triggered when persisting a new entity/document. but currently the phpcr-odm uow triggers it during the flush operation. we have to go over the event system and clean that up. |
| Comments |
| Comment by Lukas Kahwe [ 12/Apr/12 ] |
|
hmm looking at the UoW code .. i don't see how this is possible: |
| Comment by David Buchmann [ 22/May/12 ] |
|
strange. maybe i was looking at outdated code |