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

#5849 #5850 renamed clearEntityInsertions to clearEntityInsertionsForEntityName, for clarity

This commit is contained in:
Marco Pivetta 2016-06-06 00:13:39 +02:00
parent 800215040a
commit fecadf059c

View File

@ -2408,7 +2408,7 @@ class UnitOfWork implements PropertyChangedListener
} }
} else { } else {
$this->clearIdentityMapForEntityName($entityName); $this->clearIdentityMapForEntityName($entityName);
$this->clearEntityInsertions($entityName); $this->clearEntityInsertionsForEntityName($entityName);
} }
if ($this->evm->hasListeners(Events::onClear)) { if ($this->evm->hasListeners(Events::onClear)) {
@ -3480,9 +3480,9 @@ class UnitOfWork implements PropertyChangedListener
} }
/** /**
* @param $entityName * @param string $entityName
*/ */
private function clearEntityInsertions($entityName) private function clearEntityInsertionsForEntityName($entityName)
{ {
foreach ($this->entityInsertions as $hash => $entity) { foreach ($this->entityInsertions as $hash => $entity) {
if (get_class($entity) === $entityName) { if (get_class($entity) === $entityName) {