protected function TestFileDriver::loadMappingFile in Plug 7
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
- lib/
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',
);
}