initializeObject() public method

Helper method to initialize a lazy loading proxy or persistent collection.
public initializeObject ( $obj )
Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 public function initializeObject($document)
 {
     if (!is_object($document)) {
         throw new InvalidArgumentException('Parameter $document needs to be an object, ' . gettype($document) . ' given');
     }
     $this->unitOfWork->initializeObject($document);
 }
 /**
  * Helper method to initialize a lazy loading proxy or persistent collection.
  *
  * This method is a no-op for other objects
  *
  * @param object $document
  */
 public function initializeObject($document)
 {
     if (!is_object($document)) {
         throw new \InvalidArgumentException(gettype($document));
     }
     $this->unitOfWork->initializeObject($document);
 }
Beispiel #3
0
 /**
  * Helper method to initialize a lazy loading proxy or persistent collection.
  *
  * This method is a no-op for other objects
  *
  * @param object $obj
  */
 public function initializeObject($obj)
 {
     $this->unitOfWork->initializeObject($obj);
 }