/** * {@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); }
/** * 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); }