Doctrine\OXM\Mapping\Driver\AbstractFileDriver::getElement PHP Method

getElement() public method

This will lazily load the mapping file if it is not loaded yet
public getElement ( $className ) : array
return array $element The element of schema meta data
    public function getElement($className)
    {
        if ($file = $this->findMappingFile($className)) {
            $result = $this->loadMappingFile($file);
            return $result[$className];
        }
        return false;
    }