1
0
mirror of synced 2025-01-09 10:37:09 +03:00

[GH-855] fix CS

This commit is contained in:
Benjamin Eberlei 2014-01-02 22:50:17 +01:00
parent 27c9074b71
commit 7a4a46a95c

View File

@ -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);