You are here

public function AbstractClassMetadataFactory::setMetadataFor in Plug 7

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

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