You are here

public function PHPDriver::loadMetadataForClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php \Doctrine\Common\Persistence\Mapping\Driver\PHPDriver::loadMetadataForClass()

Loads the metadata for the specified class into the provided container.

Parameters

string $className:

ClassMetadata $metadata:

Return value

void

Overrides MappingDriver::loadMetadataForClass

File

vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/PHPDriver.php, line 54

Class

PHPDriver
The PHPDriver includes php files which just populate ClassMetadataInfo instances with plain PHP code.

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

public function loadMetadataForClass($className, ClassMetadata $metadata) {
  $this->metadata = $metadata;
  $this
    ->loadMappingFile($this->locator
    ->findMappingFile($className));
}