Commit d0bb8ab2 authored by romanb's avatar romanb

[2.0] Fixed EntityManager#contains().

parent b353dc51
...@@ -489,7 +489,8 @@ class EntityManager ...@@ -489,7 +489,8 @@ class EntityManager
*/ */
public function contains($entity) public function contains($entity)
{ {
return $this->_unitOfWork->isInIdentityMap($entity) && return $this->_unitOfWork->isScheduledForInsert($entity) ||
$this->_unitOfWork->isInIdentityMap($entity) &&
! $this->_unitOfWork->isScheduledForDelete($entity); ! $this->_unitOfWork->isScheduledForDelete($entity);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment