Property | Type | Description | |
---|---|---|---|
$cacheSalt | string | Salt used by specific Object Manager implementation. | |
$initialized | boolean |
Method | Description | |
---|---|---|
getAllMetadata ( ) : array | Forces the factory to load the metadata of all classes known to the underlying mapping driver. | |
getCacheDriver ( ) : Doctrine\Common\Cache\Cache | null | Gets the cache driver used by the factory to cache ClassMetadata instances. | |
getLoadedMetadata ( ) : Doctrine\Common\Persistence\Mapping\ClassMetadata[] | Returns an array of all the loaded metadata currently in memory. | |
getMetadataFor ( string $className ) : Doctrine\Common\Persistence\Mapping\ClassMetadata | Gets the class metadata descriptor for a class. | |
getReflectionService ( ) : Doctrine\Common\Persistence\Mapping\ReflectionService | Gets the reflection service associated with this metadata factory. | |
hasMetadataFor ( string $className ) : boolean | Checks whether the factory has the metadata for a class loaded already. | |
isTransient ( $class ) | {@inheritDoc} | |
setCacheDriver ( Doctrine\Common\Cache\Cache $cacheDriver = null ) : void | Sets the cache driver used by the factory to cache ClassMetadata instances. | |
setMetadataFor ( string $className, Doctrine\Common\Persistence\Mapping\ClassMetadata $class ) : void | Sets the metadata descriptor for a specific class. | |
setReflectionService ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflectionService ) : void | Sets the reflectionService. |
Method | Description | |
---|---|---|
doLoadMetadata ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ClassMetadata | null $parent, boolean $rootEntityFound, array $nonSuperclassParents ) : void | Actually loads the metadata from the underlying metadata. | |
getDriver ( ) : Doctrine\Common\Persistence\Mapping\Driver\MappingDriver | Returns the mapping driver implementation. | |
getFqcnFromAlias ( string $namespaceAlias, string $simpleClassName ) : string | Gets the fully qualified class-name from the namespace alias. | |
getParentClasses ( string $name ) : array | Gets an array of parent classes for the given entity class. | |
initialize ( ) : void | Lazy initialization of this stuff, especially the metadata driver, since these are not needed at all when a metadata cache is active. | |
initializeReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) : void | Initializes Reflection after ClassMetadata was constructed. | |
isEntity ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class ) : boolean | Checks whether the class metadata is an entity. | |
loadMetadata ( string $name ) : array | Loads the metadata of the class in question and all it's ancestors whose metadata is still not loaded. | |
newClassMetadataInstance ( string $className ) : Doctrine\Common\Persistence\Mapping\ClassMetadata | Creates a new ClassMetadata instance for the given class name. | |
onNotFoundMetadata ( string $className ) : Doctrine\Common\Persistence\Mapping\ClassMetadata | null | Provides a fallback hook for loading metadata when loading failed due to reflection/mapping exceptions | |
wakeupReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) : void | Wakes up reflection after ClassMetadata gets unserialized from cache. |
abstract protected doLoadMetadata ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ClassMetadata | null $parent, boolean $rootEntityFound, array $nonSuperclassParents ) : void | ||
$class | Doctrine\Common\Persistence\Mapping\ClassMetadata | |
$parent | Doctrine\Common\Persistence\Mapping\ClassMetadata | null | |
$rootEntityFound | boolean | |
$nonSuperclassParents | array | All parent class names that are not marked as mapped superclasses. |
return | void |
public getAllMetadata ( ) : array | ||
return | array | The ClassMetadata instances of all mapped classes. |
public getCacheDriver ( ) : Doctrine\Common\Cache\Cache | null | ||
return | Doctrine\Common\Cache\Cache | null |
abstract protected getDriver ( ) : Doctrine\Common\Persistence\Mapping\Driver\MappingDriver | ||
return | Doctrine\Common\Persistence\Mapping\Driver\MappingDriver |
public getLoadedMetadata ( ) : Doctrine\Common\Persistence\Mapping\ClassMetadata[] | ||
return | Doctrine\Common\Persistence\Mapping\ClassMetadata[] |
public getMetadataFor ( string $className ) : Doctrine\Common\Persistence\Mapping\ClassMetadata | ||
$className | string | The name of the class. |
return | Doctrine\Common\Persistence\Mapping\ClassMetadata |
protected getParentClasses ( string $name ) : array | ||
$name | string | |
return | array |
public getReflectionService ( ) : Doctrine\Common\Persistence\Mapping\ReflectionService | ||
return | Doctrine\Common\Persistence\Mapping\ReflectionService |
public hasMetadataFor ( string $className ) : boolean | ||
$className | string | |
return | boolean | TRUE if the metadata of the class in question is already loaded, FALSE otherwise. |
abstract protected initialize ( ) : void | ||
return | void |
abstract protected initializeReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) : void | ||
$class | Doctrine\Common\Persistence\Mapping\ClassMetadata | |
$reflService | Doctrine\Common\Persistence\Mapping\ReflectionService | |
return | void |
protected loadMetadata ( string $name ) : array | ||
$name | string | The name of the class for which the metadata should get loaded. |
return | array |
abstract protected newClassMetadataInstance ( string $className ) : Doctrine\Common\Persistence\Mapping\ClassMetadata | ||
$className | string | |
return | Doctrine\Common\Persistence\Mapping\ClassMetadata |
protected onNotFoundMetadata ( string $className ) : Doctrine\Common\Persistence\Mapping\ClassMetadata | null | ||
$className | string | |
return | Doctrine\Common\Persistence\Mapping\ClassMetadata | null |
public setCacheDriver ( Doctrine\Common\Cache\Cache $cacheDriver = null ) : void | ||
$cacheDriver | Doctrine\Common\Cache\Cache | |
return | void |
public setMetadataFor ( string $className, Doctrine\Common\Persistence\Mapping\ClassMetadata $class ) : void | ||
$className | string | |
$class | Doctrine\Common\Persistence\Mapping\ClassMetadata | |
return | void |
public setReflectionService ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflectionService ) : void | ||
$reflectionService | Doctrine\Common\Persistence\Mapping\ReflectionService | |
return | void |
abstract protected wakeupReflection ( Doctrine\Common\Persistence\Mapping\ClassMetadata $class, Doctrine\Common\Persistence\Mapping\ReflectionService $reflService ) : void | ||
$class | Doctrine\Common\Persistence\Mapping\ClassMetadata | |
$reflService | Doctrine\Common\Persistence\Mapping\ReflectionService | |
return | void |
protected string $cacheSalt | ||
return | string |