src/Admin/DoctrineInstallUtils.php
public function registerXmlBasedEntities($namespace, $directory) {
        $mappingDriver = InstallUtils::getOrCreateInstance('mappingDriver.'.$namespace, null, $this->moufManager);

        $code = '
        $namespaces = array(
            ROOT_PATH.'.var_export($directory, true).' => '.var_export($namespace, true).'
        );
        $driver = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver($namespaces);
        $driver->setGlobalBasename("global"); // global.orm.xml
        return $driver;
        ';

        $mappingDriver->setCode($code);

        $this->addDriverToChain($namespace, $mappingDriver);
    }
public function registerXmlBasedEntities($namespace, $directory) {
        $mappingDriver = InstallUtils::getOrCreateInstance('mappingDriver.'.$namespace, null, $this->moufManager);

        $code = '
        $namespaces = array(
            ROOT_PATH.'.var_export($directory, true).' => '.var_export($namespace, true).'
        );
        $driver = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver($namespaces);
        $driver->setGlobalBasename("global"); // global.orm.xml
        return $driver;
        ';

        $mappingDriver->setCode($code);

        $this->addDriverToChain($namespace, $mappingDriver);
    }
Registers a set of XML-based entities using Symfony's simplified XML driver:
http://doctrine-orm.readthedocs.org/en/latest/reference/xml-mapping.html

Note: you can use a global.orm.xml file to define all files.

@param string $namespace
@param string $directory Directory where the annotations are stored, relative to ROOT_PATH.