src/Service/Filler.php
private function getTypeByName($name)
    {
        if (isset($this->types[$name])) {
            return $this->doctrine
                ->getRepository('AnimeDbCatalogBundle:Type')
                ->find($this->types[$name]);
        }
    }
private function getTypeByName($name)
    {
        if (isset($this->types[$name])) {
            return $this->doctrine
                ->getRepository('AnimeDbCatalogBundle:Type')
                ->find($this->types[$name]);
        }
    }
private function getTypeByName ( $ name ) { if ( isset ( $ this -> types [ $ name ] ) ) { return $ this -> doctrine -> getRepository ( 'AnimeDbCatalogBundle:Type' ) -> find ( $ this -> types [ $ name ] ) ; } }
Get real type by name.

@param string $name

@return \AnimeDb\Bundle\CatalogBundle\Entity\Type|null
Get real type by name .