Doctrine PHPCR
  1. Doctrine PHPCR
  2. PHPCR-63

event system: prePersist and postPersist

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • 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.

        Activity

        Show
        Lukas Kahwe added a comment - hmm looking at the UoW code .. i don't see how this is possible: https://github.com/doctrine/phpcr-odm/blob/master/lib/Doctrine/ODM/PHPCR/UnitOfWork.php#L1110 https://github.com/doctrine/phpcr-odm/blob/master/lib/Doctrine/ODM/PHPCR/UnitOfWork.php#L1384
        Hide
        David Buchmann added a comment -

        strange. maybe i was looking at outdated code

        Show
        David Buchmann added a comment - strange. maybe i was looking at outdated code

          People

          • Assignee:
            Lukas Kahwe
            Reporter:
            David Buchmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: