[GH-855] fix CS
This commit is contained in:
parent
27c9074b71
commit
7a4a46a95c
@ -257,8 +257,8 @@ class IdentityMapTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
{
|
{
|
||||||
$hash1 = $this->subRoutine($this->_em);
|
$hash1 = $this->subRoutine($this->_em);
|
||||||
if (!defined('HHVM_VERSION')) {
|
if (!defined('HHVM_VERSION')) {
|
||||||
// See comment below about PersistentCollection
|
// See comment below about PersistentCollection
|
||||||
gc_collect_cycles();
|
gc_collect_cycles();
|
||||||
}
|
}
|
||||||
|
|
||||||
$user1 = new CmsUser;
|
$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 cycle the object will not (yet) be garbage collected and thus
|
||||||
// the object hash is not reused. This is not a memory leak!
|
// the object hash is not reused. This is not a memory leak!
|
||||||
if (defined('HHVM_VERSION')) {
|
if (defined('HHVM_VERSION')) {
|
||||||
$ed = $this->_em->getUnitOfWork()->getOriginalEntityData($user);
|
$ed = $this->_em->getUnitOfWork()->getOriginalEntityData($user);
|
||||||
$ed['phonenumbers']->setOwner(null, array('inversedBy' => 1));
|
$ed['phonenumbers']->setOwner(null, array('inversedBy' => 1));
|
||||||
$ed['articles']->setOwner(null, array('inversedBy' => 1));
|
$ed['articles']->setOwner(null, array('inversedBy' => 1));
|
||||||
$ed['groups']->setOwner(null, array('inversedBy' => 1));
|
$ed['groups']->setOwner(null, array('inversedBy' => 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
$em->remove($user);
|
$em->remove($user);
|
||||||
|
Loading…
Reference in New Issue
Block a user