1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Fix notice

This commit is contained in:
Benjamin Eberlei 2011-10-15 16:03:50 +02:00
parent 640facd26a
commit dd6f6cb097

View File

@ -2456,6 +2456,6 @@ class UnitOfWork implements PropertyChangedListener
if ( ! is_object($object) ) {
throw new InvalidArgumentException("Managed entity required");
}
return $this->readOnlyObjects[spl_object_hash($object)];
return isset($this->readOnlyObjects[spl_object_hash($object)]);
}
}