You are here

public function PHPDriver::loadMetadataForClass in Plug 7

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

Parameters

string $className:

ClassMetadata $metadata:

Return value

void

Overrides MappingDriver::loadMetadataForClass

File

lib/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));
}