lib/Doctrine/ORM/Mapping/Driver/FileDriver.php
public function getElement($className)
    {
        if ($this->classCache === null) {
            $this->initialize();
        }

        if (isset($this->classCache[$className])) {
            return $this->classCache[$className];
        }

        $result = $this->loadMappingFile($this->locator->findMappingFile($className));
        if (! isset($result[$className])) {
            throw MappingException::invalidMappingFile($className, str_replace('\\', '.', $className) . $this->locator->getFileExtension());
        }

        $this->classCache[$className] = $result[$className];

        return $result[$className];
    }
public function getElement($className)
    {
        if ($this->classCache === null) {
            $this->initialize();
        }

        if (isset($this->classCache[$className])) {
            return $this->classCache[$className];
        }

        $result = $this->loadMappingFile($this->locator->findMappingFile($className));
        if (! isset($result[$className])) {
            throw MappingException::invalidMappingFile($className, str_replace('\\', '.', $className) . $this->locator->getFileExtension());
        }

        $this->classCache[$className] = $result[$className];

        return $result[$className];
    }
public function getElement ( $ className ) { if ( $ this -> classCache === null ) { $ this -> initialize ( ) ; } if ( isset ( $ this -> classCache [ $ className ] ) ) { return $ this -> classCache [ $ className ] ; } $ result = $ this -> loadMappingFile ( $ this -> locator -> findMappingFile ( $ className ) ) ; if ( ! isset ( $ result [ $ className ] ) ) { throw MappingException :: invalidMappingFile ( $ className , str_replace ( '\\' , '.' , $ className ) . $ this -> locator -> getFileExtension ( ) ) ; } $ this -> classCache [ $ className ] = $ result [ $ className ] ; return $ result [ $ className ] ; }
Gets the element of schema meta data for the class from the mapping file.
This will lazily load the mapping file if it is not loaded yet.

@param string $className

@return mixed[] The element of schema meta data.

@throws MappingException
Gets the element of schema meta data for the class from the mapping file . This will lazily load the mapping file if it is not loaded yet .