Slide 24
Slide 24 text
Presentation title here
Doctrine Internals. UnitOfWork
Flush (4)
● Updates
○ Events::preUpdate
■ Entity can’t be updated directly, update changeset using
PreUpdateEventArgs
■ Relations changes not tracked too
○ UOW->recomputeSingleEntityChangeSet($class, $entity)
○ Persister->update($entity)
○ Events::postUpdate
■ Entity can’t be updated directly anymore
■ UOW->scheduleExtraUpdate($entity, array $changeset)
● UOW->executeExtraUpdates()