/**
  * Checks whether an object is registered in the identity map of this UnitOfWork.
  *
  * @param object $object
  *
  * @return bool
  */
 public function isInIdentityMap($object)
 {
     return $this->objectIdentityMap->contains($object);
 }