#6017 hardened clear()
logic, which now ensures that persisted entries are correctly cleared
This commit is contained in:
parent
dffd765b1e
commit
fdb2af07e7
@ -380,6 +380,11 @@ class UnitOfWorkTest extends OrmTestCase
|
||||
{
|
||||
$entity = new Country(456, 'United Kingdom');
|
||||
|
||||
$this->_unitOfWork->persist($entity);
|
||||
|
||||
$this->assertTrue($this->_unitOfWork->isInIdentityMap($entity));
|
||||
$this->assertTrue($this->_unitOfWork->isScheduledForInsert($entity));
|
||||
|
||||
$this->_unitOfWork->clear();
|
||||
|
||||
$this->assertFalse($this->_unitOfWork->isInIdentityMap($entity));
|
||||
|
Loading…
x
Reference in New Issue
Block a user