injectDependencies() публичный Метод

Injects required dependencies into the entity.
public injectDependencies ( Nextras\Orm\Entity\IEntity $entity )
$entity Nextras\Orm\Entity\IEntity
Пример #1
0
 /** @inheritdoc */
 public function attach(IEntity $entity)
 {
     if (!$entity->isAttached()) {
         $entity->fireEvent('onAttach', [$this, $this->metadataStorage->get(get_class($entity))]);
         if ($this->dependencyProvider) {
             $this->dependencyProvider->injectDependencies($entity);
         }
     }
 }