protected function getEntityAlias()
    {
        $entityName = $this->getRepository()->getClassName();
        if (false !== strpos($entityName, '\\')) {
            $entityName = substr(
                $entityName,
                strrpos($entityName, '\\') + 1
            );
        }

        $matches = array();
        preg_match_all(
            '/[A-Z]/',
            $entityName,
            $matches
        );
        return strtolower(implode('', $matches[0]));
    }
protected function getEntityAlias()
    {
        $entityName = $this->getRepository()->getClassName();
        if (false !== strpos($entityName, '\\')) {
            $entityName = substr(
                $entityName,
                strrpos($entityName, '\\') + 1
            );
        }

        $matches = array();
        preg_match_all(
            '/[A-Z]/',
            $entityName,
            $matches
        );
        return strtolower(implode('', $matches[0]));
    }
protected function getEntityAlias ( ) { $ entityName = $ this -> getRepository ( ) -> getClassName ( ) ; if ( false !== strpos ( $ entityName , '\\' ) ) { $ entityName = substr ( $ entityName , strrpos ( $ entityName , '\\' ) + 1 ) ; } $ matches = array ( ) ; preg_match_all ( '/[A-Z]/' , $ entityName , $ matches ) ; return strtolower ( implode ( '' , $ matches [ 0 ] ) ) ; }
Returns all uppercase letters of the entity name without the
namespace lowercased

@return string
Returns all uppercase letters of the entity name without the namespace lowercased