Esempio n. 1
0
 /**
  * Is this entity read only?
  *
  * @param object $object
  *
  * @return bool
  *
  * @throws ORMInvalidArgumentException
  */
 public function isReadOnly($object)
 {
     if (!is_object($object)) {
         throw ORMInvalidArgumentException::readOnlyRequiresManagedEntity($object);
     }
     return isset($this->readOnlyObjects[spl_object_hash($object)]);
 }