1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Fixed only variables should be passed by reference issue

This commit is contained in:
Guilherme Blanco 2016-02-16 04:46:34 +00:00
parent 86cde3a9df
commit b784a04cf7

View File

@ -1043,13 +1043,15 @@ class UnitOfWork implements PropertyChangedListener
$postUpdateInvoke = $this->listenersInvoker->getSubscribedSystems($class, Events::postUpdate);
foreach ($this->entityUpdates as $oid => $entity) {
if ($this->em->getClassMetadata(get_class($entity))->name !== $className) {
continue;
}
if ($preUpdateInvoke != ListenersInvoker::INVOKE_NONE) {
$this->listenersInvoker->invoke($class, Events::preUpdate, $entity, new PreUpdateEventArgs($entity, $this->em, $this->getEntityChangeSet($entity)), $preUpdateInvoke);
$changeset = $this->getEntityChangeSet($entity);
$this->listenersInvoker->invoke($class, Events::preUpdate, $entity, new PreUpdateEventArgs($entity, $this->em, $changeset), $preUpdateInvoke);
$this->recomputeSingleEntityChangeSet($class, $entity);
}