Skip to content

Commit

Permalink
[tree][closure] allow cascade persist, references doctrine-extensions…
Browse files Browse the repository at this point in the history
  • Loading branch information
l3pp4rd committed Feb 26, 2012
1 parent 5e359b9 commit 31e5e51
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/Gedmo/Tree/Strategy/ORM/Closure.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Gedmo\Tree\TreeListener;
use Doctrine\ORM\Version;
use Gedmo\Tool\Wrapper\AbstractWrapper;
use Gedmo\Tree\Node;

/**
* This strategy makes tree act like
Expand Down Expand Up @@ -190,13 +189,6 @@ protected function getJoinColumnFieldName($association)
public function processPostPersist($em, $entity)
{
$uow = $em->getUnitOfWork();
if ($uow->hasPendingInsertions()) {
$insertions = $uow->getScheduledEntityInsertions();
foreach ($insertions as $insertion) {
if ($insertion instanceof Node)
return;
}
}

while ($node = array_shift($this->pendingChildNodeInserts)) {
$meta = $em->getClassMetadata(get_class($node));
Expand Down

0 comments on commit 31e5e51

Please sign in to comment.