ClassMetadataFactory
public class ClassMetadataFactory
www.doctrine-project.org
Constructor Summary | |
---|---|
ClassMetadataFactory(mixed em, $driver The) Creates a new factory instance that uses the given metadata driver implementation. |
Method Summary | |
---|---|
array | Forces the factory to load the metadata of all classes known to the underlying mapping driver. |
Doctrine\Common\Cache\Cache | Gets the cache driver used by the factory to cache ClassMetadata instances. |
void | |
Doctrine\ORM\Mapping\ClassMetadata | getMetadataFor(string className) Gets the class metadata descriptor for a class. |
boolean | hasMetadataFor(string className) Checks whether the factory has the metadata for a class loaded already. |
void | setCacheDriver(Doctrine\Common\Cache\Cache cacheDriver) Sets the cache driver used by the factory to cache ClassMetadata instances. |
void | setMetadataFor(string className, ClassMetadata class) Sets the metadata descriptor for a specific class. |
public ClassMetadataFactory(mixed em, $driver The)
Creates a new factory instance that uses the given metadata driver implementation.
public array getAllMetadata()
Forces the factory to load the metadata of all classes known to the underlying mapping driver.
public Doctrine\Common\Cache\Cache getCacheDriver()
Gets the cache driver used by the factory to cache ClassMetadata instances.
public void getLoadedMetadata()
public Doctrine\ORM\Mapping\ClassMetadata getMetadataFor(string className)
Gets the class metadata descriptor for a class.
public boolean hasMetadataFor(string className)
Checks whether the factory has the metadata for a class loaded already.
public void setCacheDriver(Doctrine\Common\Cache\Cache cacheDriver)
Sets the cache driver used by the factory to cache ClassMetadata instances.
public void setMetadataFor(string className, ClassMetadata class)
Sets the metadata descriptor for a specific class.
NOTE: This is only useful in very special cases, like when generating proxy classes.
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.