src/DlcCategory/Mapper/Category.php
public function findOneByName($name)
    {
        $entityClass = $this->getEntityClass();

        return $this->getObjectManager()
                    ->getRepository($entityClass)
                    ->findOneByName($name);
    }
public function findOneByName($name)
    {
        $entityClass = $this->getEntityClass();

        return $this->getObjectManager()
                    ->getRepository($entityClass)
                    ->findOneByName($name);
    }
public function findOneByName ( $ name ) { $ entityClass = $ this -> getEntityClass ( ) ; return $ this -> getObjectManager ( ) -> getRepository ( $ entityClass ) -> findOneByName ( $ name ) ; }
Find one category by it's name

@param string $name
Find one category by it s name