1
0
mirror of synced 2025-01-18 22:41:43 +03:00

DDC-1238 - Reproducible case, its correct through

This commit is contained in:
Benjamin Eberlei 2011-07-04 20:35:33 +02:00
parent 8e7c156451
commit a947e8a4b0

View File

@ -35,11 +35,12 @@ class DDC1238Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->flush();
$this->_em->clear();
for ($i = 0; $i < 5; $i++) {
$user = $this->_em->getReference(__NAMESPACE__ . '\\DDC1238User', $user->getId());
}
$user = $this->_em->getReference(__NAMESPACE__ . '\\DDC1238User', $user->getId());
$this->_em->clear();
$this->assertInstanceOf(__NAMESPACE__ . '\\DDC1238User', $user);
$userId = $user->getId();
$this->assertNull($userId, "This proxy is unitialized and was cleared from the identity map, so no loading possible.");
}
}