protected function 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 drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php
Loads the metadata for the specified class into the provided container.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php, line 65

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,
  );
}