public function getEntityRepository()
    {
        $repository = $this->entityManager->getRepository($this->getEntityName());

        if (!($repository instanceof EntityRepository)) {
            throw new InvalidEntityNameException($this->getEntityName(), $this->getEntityClass());
        }

        return $repository;
    }
public function getEntityRepository()
    {
        $repository = $this->entityManager->getRepository($this->getEntityName());

        if (!($repository instanceof EntityRepository)) {
            throw new InvalidEntityNameException($this->getEntityName(), $this->getEntityClass());
        }

        return $repository;
    }
public function getEntityRepository ( ) { $ repository = $ this -> entityManager -> getRepository ( $ this -> getEntityName ( ) ) ; if ( ! ( $ repository instanceof EntityRepository ) ) { throw new InvalidEntityNameException ( $ this -> getEntityName ( ) , $ this -> getEntityClass ( ) ) ; } return $ repository ; }
Gets the doctrine's entity repository for the entity

@return \Doctrine\ORM\EntityRepository
Gets the doctrine s entity repository for the entity