protected function PHPDriver::loadMappingFile in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php \Doctrine\Common\Persistence\Mapping\Driver\PHPDriver::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
1 call to PHPDriver::loadMappingFile()
- PHPDriver::loadMetadataForClass in vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ Driver/ PHPDriver.php - Loads the metadata for the specified class into the provided container.
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ Mapping/ Driver/ PHPDriver.php, line 63
Class
- PHPDriver
- The PHPDriver includes php files which just populate ClassMetadataInfo instances with plain PHP code.
Namespace
Doctrine\Common\Persistence\Mapping\DriverCode
protected function loadMappingFile($file) {
$metadata = $this->metadata;
include $file;
return array(
$metadata
->getName() => $metadata,
);
}