Nextras\Orm\Repository\Repository::attach PHP Метод

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

public attach ( Nextras\Orm\Entity\IEntity $entity )
$entity Nextras\Orm\Entity\IEntity
    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);
            }
        }
    }