You are here

public function AbstractClassMetadataFactory::setMetadataFor in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php \Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory::setMetadataFor()

Sets the metadata descriptor for a specific class.

NOTE: This is only useful in very special cases, like when generating proxy classes.

Parameters

string $className:

ClassMetadata $class:

Return value

void

Overrides ClassMetadataFactory::setMetadataFor

File

vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php, line 265

Class

AbstractClassMetadataFactory
The ClassMetadataFactory is used to create ClassMetadata objects that contain all the metadata mapping informations of a class which describes how a class should be mapped to a relational database.

Namespace

Doctrine\Common\Persistence\Mapping

Code

public function setMetadataFor($className, $class) {
  $this->loadedMetadata[$className] = $class;
}