AdminModule/presenters/BasePresenter.php
public function injectEntityManager(\Doctrine\ORM\EntityManager $em)
    {
        if ($this->em) {
            throw new \Nette\InvalidStateException('Entity manager has been already set.');
        }

        $this->em = $em;

        return $this;
    }
public function injectEntityManager(\Doctrine\ORM\EntityManager $em)
    {
        if ($this->em) {
            throw new \Nette\InvalidStateException('Entity manager has been already set.');
        }

        $this->em = $em;

        return $this;
    }
public function injectEntityManager ( \ Doctrine \ ORM \ EntityManager $ em ) { if ( $ this -> em ) { throw new \ Nette \ InvalidStateException ( 'Entity manager has been already set.' ) ; } $ this -> em = $ em ; return $ this ; }
Injects entity manager.
@param  \Doctrine\ORM\EntityManager  $em
@return BasePresenter
@throws \Nette\InvalidStateException
Injects entity manager .