Doctrine\ODM\MongoDB\Mapping\Driver\XmlDriver::loadMappingFile PHP Метод

loadMappingFile() защищенный Метод

{@inheritDoc}
protected loadMappingFile ( $file )
    protected function loadMappingFile($file)
    {
        $result = array();
        $xmlElement = simplexml_load_file($file);
        foreach (array('document', 'embedded-document', 'mapped-superclass', 'query-result-document') as $type) {
            if (isset($xmlElement->{$type})) {
                foreach ($xmlElement->{$type} as $documentElement) {
                    $documentName = (string) $documentElement['name'];
                    $result[$documentName] = $documentElement;
                }
            }
        }
        return $result;
    }