Doctrine\ORM\Tools\DisconnectedClassMetadataFactory
The DisconnectedClassMetadataFactory is used to create ClassMetadataInfo objects that do not require the entity class actually exist. This allows us to load some mapping information and use it to do things like generate code from the mapping information.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class DisconnectedClassMetadataFactory
extends ClassMetadataFactory
{
- // Inherited members from AbstractClassMetadataFactory
- protected string $cacheSalt;
- protected bool $initialized;
- // methods
- public void getReflectionService()
- // Inherited methods from ClassMetadataFactory
- public void setEntityManager()
- protected void initialize()
- protected void doLoadMetadata()
- protected void validateRuntimeMetadata()
- protected void newClassMetadataInstance()
- protected void wakeupReflection()
- protected void initializeReflection()
- protected void getFqcnFromAlias()
- protected void getDriver()
- protected void isEntity()
- // Inherited methods from AbstractClassMetadataFactory
- public void setCacheDriver()
- public Cache getCacheDriver()
- public array getLoadedMetadata()
- public array getAllMetadata()
- protected abstract void initialize()
- protected abstract string getFqcnFromAlias()
- protected abstract MappingDriver getDriver()
- protected abstract void wakeupReflection()
- protected abstract void initializeReflection()
- protected abstract boolean isEntity()
- public ClassMetadata getMetadataFor()
- public boolean hasMetadataFor()
- public void setMetadataFor()
- protected array getParentClasses()
- protected array loadMetadata()
- protected abstract void doLoadMetadata()
- protected abstract ClassMetadata newClassMetadataInstance()
- public bool isTransient()
- public void setReflectionService()
- public ReflectionService getReflectionService()
Hierarchy
Members
protected
- $cacheSalt
—
string
Salt used by specific Object Manager implementation. - $initialized — Doctrine\Common\Persistence\Mapping\bool
Methods
public
Inherited from Doctrine\ORM\Mapping\ClassMetadataFactory
protected
- doLoadMetadata() — {@inheritDoc}
- getDriver() — {@inheritDoc}
- getFqcnFromAlias() — {@inheritDoc}
- initialize() — {@inheritDoc}.
- initializeReflection() — {@inheritDoc}
- isEntity() — {@inheritDoc}
- newClassMetadataInstance() — {@inheritDoc}
- validateRuntimeMetadata() — Validate runtime metadata is correctly defined.
- wakeupReflection() — {@inheritDoc}
public
Inherited from Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory
protected
- doLoadMetadata() — Actually load the metadata from the underlying metadata
- getDriver() — Return the mapping driver implementation.
- getFqcnFromAlias() — Get the fully qualified class-name from the namespace alias.
- getParentClasses() — Get array of parent classes for the given entity class
- initialize() — Lazy initialization of this stuff, especially the metadata driver, since these are not needed at all when a metadata cache is active.
- initializeReflection() — Initialize Reflection after ClassMetadata was constructed.
- isEntity() — Checks whether the class metadata is an entity.
- loadMetadata() — Loads the metadata of the class in question and all it's ancestors whose metadata is still not loaded.
- newClassMetadataInstance() — Creates a new ClassMetadata instance for the given class name.
- wakeupReflection() — Wakeup reflection after ClassMetadata gets unserialized from cache.
public
- getAllMetadata() — Forces the factory to load the metadata of all classes known to the underlying mapping driver.
- getCacheDriver() — Gets the cache driver used by the factory to cache ClassMetadata instances.
- getLoadedMetadata() — Return an array of all the loaded metadata currently in memory.
- getMetadataFor() — Gets the class metadata descriptor for a class.
- getReflectionService() — Get the reflection service associated with this metadata factory.
- hasMetadataFor() — Checks whether the factory has the metadata for a class loaded already.
- isTransient() — Check if this class is mapped by this Object Manager + ClassMetadata configuration
- setCacheDriver() — Sets the cache driver used by the factory to cache ClassMetadata instances.
- setMetadataFor() — Sets the metadata descriptor for a specific class.
- setReflectionService() — Set reflectionService.