You are here

public function StaticPHPDriver::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/StaticPHPDriver.php, line 77

Class

StaticPHPDriver
The StaticPHPDriver calls a static loadMetadata() method on your entity classes where you can manually populate the ClassMetadata instance.

Namespace

Doctrine\Common\Persistence\Mapping\Driver

Code

public function loadMetadataForClass($className, ClassMetadata $metadata) {
  $className::loadMetadata($metadata);
}