1
0
mirror of synced 2025-02-09 00:39:25 +03:00

[DDC-3343] Failing test case (updated)

This commit is contained in:
Andrea Sprega 2014-10-25 00:02:57 +02:00 committed by Marco Pivetta
parent ee246af7e3
commit a88550a70c

View File

@ -39,14 +39,11 @@ class DDC3343Test extends \Doctrine\Tests\OrmFunctionalTestCase
$group->users->removeElement($user); $group->users->removeElement($user);
$this->_em->persist($group); // Even though the collection is extra lazy, the user should not have been deleted.
$this->_em->flush();
// Even if the collection is extra lazy, the user should not have been deleted.
$this->_em->clear(); $this->_em->clear();
$user = $this->_em->find(__NAMESPACE__ . '\DDC3343User', $user->id); $user = $this->_em->find(__NAMESPACE__ . '\DDC3343User', $user->id);
$this->assertNotNull($user); $this->assertInstanceOf(__NAMESPACE__ . '\DDC3343User', $user);
} }
} }