Skip to content

Commit

Permalink
Merge pull request #7491 from thierrymarianne/remove-dead-code
Browse files Browse the repository at this point in the history
Remove dead code
  • Loading branch information
Ocramius committed Nov 27, 2018
2 parents 62de42c + c4d335e commit 7c9ab76
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/Doctrine/ORM/UnitOfWork.php
Expand Up @@ -461,9 +461,6 @@ private function executeExtraUpdates()

$this->entityChangeSets[$oid] = $changeset;

// echo 'Extra update: ';
// \Doctrine\Common\Util\Debug::dump($changeset, 3);

$this->getEntityPersister(get_class($entity))->update($entity);
}

Expand Down Expand Up @@ -1003,9 +1000,6 @@ private function executeUpdates($class)
}

if (! empty($this->entityChangeSets[$oid])) {
// echo 'Update: ';
// \Doctrine\Common\Util\Debug::dump($this->entityChangeSets[$oid], 3);

$persister->update($entity);
}

Expand Down Expand Up @@ -1044,7 +1038,6 @@ private function executeDeletions($class)

// Entity with this $oid after deletion treated as NEW, even if the $oid
// is obtained by a new entity because the old one went out of scope.
//$this->entityStates[$oid] = self::STATE_NEW;
if (! $class->isIdentifierComposite()) {
$property = $class->getProperty($class->getSingleIdentifierFieldName());

Expand Down Expand Up @@ -1471,8 +1464,6 @@ public function removeFromIdentityMap($entity)
if (isset($this->identityMap[$className][$idHash])) {
unset($this->identityMap[$className][$idHash], $this->readOnlyObjects[$oid]);

//$this->entityStates[$oid] = self::STATE_DETACHED;

return true;
}

Expand Down

0 comments on commit 7c9ab76

Please sign in to comment.