1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00

use '!==' instead of '!='

This commit is contained in:
Fabio B. Silva 2012-11-09 18:14:51 -02:00 committed by fabio.silva
parent e9c89cafb9
commit 46fea51622

View file

@ -523,7 +523,7 @@ class UnitOfWork implements PropertyChangedListener
$invoke = $this->listenersInvoker->getSubscribedSystems($class, Events::preFlush); $invoke = $this->listenersInvoker->getSubscribedSystems($class, Events::preFlush);
if ($invoke != ListenersInvoker::INVOKE_NONE) { if ($invoke !== ListenersInvoker::INVOKE_NONE) {
$this->listenersInvoker->invoke($class, Events::preFlush, $entity, new PreFlushEventArgs($entity, $this->em), $invoke); $this->listenersInvoker->invoke($class, Events::preFlush, $entity, new PreFlushEventArgs($entity, $this->em), $invoke);
} }
@ -824,7 +824,7 @@ class UnitOfWork implements PropertyChangedListener
$oid = spl_object_hash($entity); $oid = spl_object_hash($entity);
$invoke = $this->listenersInvoker->getSubscribedSystems($class, Events::prePersist); $invoke = $this->listenersInvoker->getSubscribedSystems($class, Events::prePersist);
if ($invoke != ListenersInvoker::INVOKE_NONE) { if ($invoke !== ListenersInvoker::INVOKE_NONE) {
$this->listenersInvoker->invoke($class, Events::prePersist, $entity, new LifecycleEventArgs($entity, $this->em), $invoke); $this->listenersInvoker->invoke($class, Events::prePersist, $entity, new LifecycleEventArgs($entity, $this->em), $invoke);
} }
@ -935,7 +935,7 @@ class UnitOfWork implements PropertyChangedListener
unset($this->entityInsertions[$oid]); unset($this->entityInsertions[$oid]);
if ($invoke != ListenersInvoker::INVOKE_NONE) { if ($invoke !== ListenersInvoker::INVOKE_NONE) {
$entities[] = $entity; $entities[] = $entity;
} }
} }
@ -1033,7 +1033,7 @@ class UnitOfWork implements PropertyChangedListener
$class->reflFields[$class->identifier[0]]->setValue($entity, null); $class->reflFields[$class->identifier[0]]->setValue($entity, null);
} }
if ($invoke != ListenersInvoker::INVOKE_NONE) { if ($invoke !== ListenersInvoker::INVOKE_NONE) {
$this->listenersInvoker->invoke($class, Events::postRemove, $entity, new LifecycleEventArgs($entity, $this->em), $invoke); $this->listenersInvoker->invoke($class, Events::postRemove, $entity, new LifecycleEventArgs($entity, $this->em), $invoke);
} }
} }
@ -1676,7 +1676,7 @@ class UnitOfWork implements PropertyChangedListener
case self::STATE_MANAGED: case self::STATE_MANAGED:
$invoke = $this->listenersInvoker->getSubscribedSystems($class, Events::preRemove); $invoke = $this->listenersInvoker->getSubscribedSystems($class, Events::preRemove);
if ($invoke != ListenersInvoker::INVOKE_NONE) { if ($invoke !== ListenersInvoker::INVOKE_NONE) {
$this->listenersInvoker->invoke($class, Events::preRemove, $entity, new LifecycleEventArgs($entity, $this->em), $invoke); $this->listenersInvoker->invoke($class, Events::preRemove, $entity, new LifecycleEventArgs($entity, $this->em), $invoke);
} }
@ -2678,7 +2678,7 @@ class UnitOfWork implements PropertyChangedListener
if ($overrideLocalValues) { if ($overrideLocalValues) {
$invoke = $this->listenersInvoker->getSubscribedSystems($class, Events::postLoad); $invoke = $this->listenersInvoker->getSubscribedSystems($class, Events::postLoad);
if ($invoke != ListenersInvoker::INVOKE_NONE) { if ($invoke !== ListenersInvoker::INVOKE_NONE) {
$this->listenersInvoker->invoke($class, Events::postLoad, $entity, new LifecycleEventArgs($entity, $this->em), $invoke); $this->listenersInvoker->invoke($class, Events::postLoad, $entity, new LifecycleEventArgs($entity, $this->em), $invoke);
} }
} }