Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[tree][closure] allow cascade persist, references #264

  • Loading branch information...
commit 31e5e51f242c7cd03433d7c0c8d58c55b26cc095 1 parent 5e359b9
@l3pp4rd authored
Showing with 0 additions and 8 deletions.
  1. +0 −8 lib/Gedmo/Tree/Strategy/ORM/Closure.php
View
8 lib/Gedmo/Tree/Strategy/ORM/Closure.php
@@ -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
@@ -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));
Please sign in to comment.
Something went wrong with that request. Please try again.