protected function TestFileDriver::loadMappingFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php \Doctrine\Tests\Common\Persistence\Mapping\TestFileDriver::loadMappingFile()
Loads a mapping file with the given name and returns a map from class/entity names to their corresponding file driver elements.
Parameters
string $file The mapping file to load.:
Return value
array
Overrides FileDriver::loadMappingFile
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php, line 130
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
protected function loadMappingFile($file) {
if (strpos($file, "global.yml") !== false) {
return array(
'stdGlobal' => 'stdGlobal',
'stdGlobal2' => 'stdGlobal2',
);
}
return array(
'stdClass' => 'stdClass',
);
}