You are here

public function StaticPHPDriver::loadMetadataForClass in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/StaticPHPDriver.php \Doctrine\Common\Persistence\Mapping\Driver\StaticPHPDriver::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/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);
}