src/Service/Filler.php
private function getGenreByName($name)
    {
        if (isset($this->genres[$name])) {
            return $this->doctrine
                ->getRepository('AnimeDbCatalogBundle:Genre')
                ->findOneByName($this->genres[$name]);
        }
    }
private function getGenreByName($name)
    {
        if (isset($this->genres[$name])) {
            return $this->doctrine
                ->getRepository('AnimeDbCatalogBundle:Genre')
                ->findOneByName($this->genres[$name]);
        }
    }
private function getGenreByName ( $ name ) { if ( isset ( $ this -> genres [ $ name ] ) ) { return $ this -> doctrine -> getRepository ( 'AnimeDbCatalogBundle:Genre' ) -> findOneByName ( $ this -> genres [ $ name ] ) ; } }
Get real genre by name.

@param string $name

@return \AnimeDb\Bundle\CatalogBundle\Entity\Genre|null
Get real genre by name .