protected function getEntityName($entityClassName)
    {
        preg_match_all('/\\\([a-zA-Z]+)/', $entityClassName, $matches);
        if (!empty($matches[1])) {
            return $matches[1][count($matches[1]) - 1];
        }
        return $entityClassName;
    }
protected function getEntityName($entityClassName)
    {
        preg_match_all('/\\\([a-zA-Z]+)/', $entityClassName, $matches);
        if (!empty($matches[1])) {
            return $matches[1][count($matches[1]) - 1];
        }
        return $entityClassName;
    }
protected function getEntityName ( $ entityClassName ) { preg_match_all ( '/\\\([a-zA-Z]+)/' , $ entityClassName , $ matches ) ; if ( ! empty ( $ matches [ 1 ] ) ) { return $ matches [ 1 ] [ count ( $ matches [ 1 ] ) - 1 ] ; } return $ entityClassName ; }
Get entity name by class name

@param string $entityClassName Class name

@return string Entity name
Get entity name by class name