메소드 | 설명 | |
---|---|---|
__construct ( |
||
getAllMetadata ( ) : array | Forces the factory to load the metadata of all classes known to the underlying mapping driver. | |
getAllXmlNodes ( ) : array | Preloads all metadata and returns an array of all known mapped node types | |
getCacheDriver ( ) : Doctrine\Common\Cache\Cache | Gets the cache driver used by the factory to cache ClassMetadata instances. | |
getLoadedMetadata ( ) : array | ||
getMetadataFor ( string $className ) : |
Gets the class metadata descriptor for a class. | |
hasMetadataFor ( string $className ) : boolean | Checks whether the factory has the metadata for a class loaded already. | |
setCacheDriver ( Doctrine\Common\Cache\Cache $cacheDriver ) | Sets the cache driver used by the factory to cache Mapping instances. | |
setMetadataFor ( string $className, ClassMapping $class ) | Sets the metadata descriptor for a specific class. |
메소드 | 설명 | |
---|---|---|
getParentClasses ( string $name ) : array | Get array of parent classes for the given entity class | |
loadMetadata ( string $name ) | Loads the metadata of the class in question and all it's ancestors whose metadata is still not loaded. | |
newClassMetadataInstance ( string $className ) : |
Creates a new Mapping instance for the given class name. |
메소드 | 설명 | |
---|---|---|
addInheritedFields ( |
Adds inherited fields to the subclass mapping. | |
completeIdGeneratorMapping ( |
Completes the ID generator mapping. If "auto" is specified we choose the generator most appropriate. | |
completeMappingTypeValidation ( string $className, |
Complete and validate type mappings | |
initialize ( ) | Lazy initialization of this stuff, especially the metadata driver, since these are not needed at all when a metadata cache is active. |
public __construct ( |
||
$configuration | ||
$evm | Doctrine\Common\EventManager | |
리턴 | null |
public getAllMetadata ( ) : array | ||
리턴 | array | The ClassMetadata instances of all mapped classes. |
public getAllXmlNodes ( ) : array | ||
리턴 | array |
public getCacheDriver ( ) : Doctrine\Common\Cache\Cache | ||
리턴 | Doctrine\Common\Cache\Cache |
public getMetadataFor ( string $className ) : |
||
$className | string | The name of the class. |
리턴 |
protected getParentClasses ( string $name ) : array | ||
$name | string | |
리턴 | array | $parentClasses |
public hasMetadataFor ( string $className ) : boolean | ||
$className | string | |
리턴 | boolean | TRUE if the metadata of the class in question is already loaded, FALSE otherwise. |
protected loadMetadata ( string $name ) | ||
$name | string | The name of the class for which the metadata should get loaded. |
protected newClassMetadataInstance ( string $className ) : |
||
$className | string | |
리턴 |
public setCacheDriver ( Doctrine\Common\Cache\Cache $cacheDriver ) | ||
$cacheDriver | Doctrine\Common\Cache\Cache |
public setMetadataFor ( string $className, ClassMapping $class ) | ||
$className | string | |
$class | ClassMapping |