[2.0] Fixed EntityManager#contains().
This commit is contained in:
parent
b353dc5172
commit
d0bb8ab2e4
@ -489,7 +489,8 @@ class EntityManager
|
||||
*/
|
||||
public function contains($entity)
|
||||
{
|
||||
return $this->_unitOfWork->isInIdentityMap($entity) &&
|
||||
return $this->_unitOfWork->isScheduledForInsert($entity) ||
|
||||
$this->_unitOfWork->isInIdentityMap($entity) &&
|
||||
! $this->_unitOfWork->isScheduledForDelete($entity);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user