private function locateDescription($entityClass)
    {
        $entityName     = preg_replace('~^.*?(\w+)$~', '\1', $entityClass);
        $definitionFile = $entityName . '.xml';
        $filename       = $this->locator->findFile($definitionFile);

        if (!is_null($filename)) {
            return $filename;
        }

        throw new EntityNotDefinedException($entityClass);
    }
private function locateDescription($entityClass)
    {
        $entityName     = preg_replace('~^.*?(\w+)$~', '\1', $entityClass);
        $definitionFile = $entityName . '.xml';
        $filename       = $this->locator->findFile($definitionFile);

        if (!is_null($filename)) {
            return $filename;
        }

        throw new EntityNotDefinedException($entityClass);
    }
private function locateDescription ( $ entityClass ) { $ entityName = preg_replace ( '~^.*?(\w+)$~' , '\1' , $ entityClass ) ; $ definitionFile = $ entityName . '.xml' ; $ filename = $ this -> locator -> findFile ( $ definitionFile ) ; if ( ! is_null ( $ filename ) ) { return $ filename ; } throw new EntityNotDefinedException ( $ entityClass ) ; }
Locate the description file

@param   string $entityClass The class of the entity

@return  string  The definition file path
Locate the description file