diff --git a/tests/Doctrine/Tests/ORM/Functional/IdentityMapTest.php b/tests/Doctrine/Tests/ORM/Functional/IdentityMapTest.php index 2ba6d7ba4..3ac5bbe1c 100644 --- a/tests/Doctrine/Tests/ORM/Functional/IdentityMapTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/IdentityMapTest.php @@ -257,8 +257,8 @@ class IdentityMapTest extends \Doctrine\Tests\OrmFunctionalTestCase { $hash1 = $this->subRoutine($this->_em); if (!defined('HHVM_VERSION')) { - // See comment below about PersistentCollection - gc_collect_cycles(); + // See comment below about PersistentCollection + gc_collect_cycles(); } $user1 = new CmsUser; @@ -283,10 +283,10 @@ class IdentityMapTest extends \Doctrine\Tests\OrmFunctionalTestCase // the cycle the object will not (yet) be garbage collected and thus // the object hash is not reused. This is not a memory leak! if (defined('HHVM_VERSION')) { - $ed = $this->_em->getUnitOfWork()->getOriginalEntityData($user); - $ed['phonenumbers']->setOwner(null, array('inversedBy' => 1)); - $ed['articles']->setOwner(null, array('inversedBy' => 1)); - $ed['groups']->setOwner(null, array('inversedBy' => 1)); + $ed = $this->_em->getUnitOfWork()->getOriginalEntityData($user); + $ed['phonenumbers']->setOwner(null, array('inversedBy' => 1)); + $ed['articles']->setOwner(null, array('inversedBy' => 1)); + $ed['groups']->setOwner(null, array('inversedBy' => 1)); } $em->remove($user);