[2.0] Fixed EntityManager#contains().
This commit is contained in:
parent
b353dc5172
commit
d0bb8ab2e4
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue