You are here

protected function PHPDriver::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

1 call to PHPDriver::loadMappingFile()
PHPDriver::loadMetadataForClass in lib/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php
Loads the metadata for the specified class into the provided container.

File

lib/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\Driver

Code

protected function loadMappingFile($file) {
  $metadata = $this->metadata;
  include $file;
  return array(
    $metadata
      ->getName() => $metadata,
  );
}