Doctrine\ORM\Configuration
Configuration container for all configuration options of Doctrine.
It combines all configuration options from DBAL & ORM.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class Configuration
extends Configuration
{
- // Inherited members from Configuration
- protected array $_attributes;
- // methods
- public void setProxyDir()
- public string getProxyDir()
- public boolean getAutoGenerateProxyClasses()
- public void setAutoGenerateProxyClasses()
- public string getProxyNamespace()
- public void setProxyNamespace()
- public void setMetadataDriverImpl()
- public AnnotationDriver newDefaultAnnotationDriver()
- public void addEntityNamespace()
- public string getEntityNamespace()
- public void setEntityNamespaces()
- public array getEntityNamespaces()
- public MappingDriver getMetadataDriverImpl()
- public Cache getQueryCacheImpl()
- public void setQueryCacheImpl()
- public Cache getHydrationCacheImpl()
- public void setHydrationCacheImpl()
- public Cache getMetadataCacheImpl()
- public void setMetadataCacheImpl()
- public void addNamedQuery()
- public string getNamedQuery()
- public void addNamedNativeQuery()
- public array getNamedNativeQuery()
- public void ensureProductionSettings()
- public void addCustomStringFunction()
- public string getCustomStringFunction()
- public void setCustomStringFunctions()
- public void addCustomNumericFunction()
- public string getCustomNumericFunction()
- public void setCustomNumericFunctions()
- public void addCustomDatetimeFunction()
- public string getCustomDatetimeFunction()
- public void setCustomDatetimeFunctions()
- public void setCustomHydrationModes()
- public string getCustomHydrationMode()
- public void addCustomHydrationMode()
- public void setClassMetadataFactoryName()
- public string getClassMetadataFactoryName()
- public void addFilter()
- public string getFilterClassName()
- public void setDefaultRepositoryClassName()
- public string getDefaultRepositoryClassName()
- public void setNamingStrategy()
- public NamingStrategy getNamingStrategy()
- public void setQuoteStrategy()
- public QuoteStrategy getQuoteStrategy()
- // Inherited methods from Configuration
- public void setSQLLogger()
- public SQLLogger getSQLLogger()
- public Cache getResultCacheImpl()
- public void setResultCacheImpl()
- public void setFilterSchemaAssetsExpression()
- public string|null getFilterSchemaAssetsExpression()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
123+ | Force parameter to be a Closure to ensure lazy evaluation |
Members
protected
- $_attributes
—
array
The attributes that are contained in the configuration.
Methods
public
- addCustomDatetimeFunction() — Registers a custom DQL function that produces a date/time value.
- addCustomHydrationMode() — Add a custom hydration mode.
- addCustomNumericFunction() — Registers a custom DQL function that produces a numeric value.
- addCustomStringFunction() — Registers a custom DQL function that produces a string value.
- addEntityNamespace() — Adds a namespace under a certain alias.
- addFilter() — Add a filter to the list of possible filters.
- addNamedNativeQuery() — Adds a named native query to the configuration.
- addNamedQuery() — Adds a named DQL query to the configuration.
- ensureProductionSettings() — Ensures that this Configuration instance contains settings that are suitable for a production environment.
- getAutoGenerateProxyClasses() — Gets a boolean flag that indicates whether proxy classes should always be regenerated during each script execution.
- getClassMetadataFactoryName()
- getCustomDatetimeFunction() — Gets the implementation class name of a registered custom date/time DQL function.
- getCustomHydrationMode() — Get the hydrator class for the given hydration mode name.
- getCustomNumericFunction() — Gets the implementation class name of a registered custom numeric DQL function.
- getCustomStringFunction() — Gets the implementation class name of a registered custom string DQL function.
- getDefaultRepositoryClassName() — Get default repository class.
- getEntityNamespace() — Resolves a registered namespace alias to the full namespace.
- getEntityNamespaces() — Retrieves the list of registered entity namespace aliases.
- getFilterClassName() — Gets the class name for a given filter name.
- getHydrationCacheImpl() — Gets the cache driver implementation that is used for the hydration cache (SQL cache).
- getMetadataCacheImpl() — Gets the cache driver implementation that is used for metadata caching.
- getMetadataDriverImpl() — Gets the cache driver implementation that is used for the mapping metadata.
- getNamedNativeQuery() — Gets the components of a previously registered named native query.
- getNamedQuery() — Gets a previously registered named DQL query.
- getNamingStrategy() — Get naming strategy..
- getProxyDir() — Gets the directory where Doctrine generates any necessary proxy class files.
- getProxyNamespace() — Gets the namespace where proxy classes reside.
- getQueryCacheImpl() — Gets the cache driver implementation that is used for the query cache (SQL cache).
- getQuoteStrategy() — Get quote strategy.
- newDefaultAnnotationDriver() — Add a new default annotation driver with a correctly configured annotation reader. If $useSimpleAnnotationReader is true, the notation `@Entity` will work, otherwise, the notation `@ORM\Entity` will be supported.
- setAutoGenerateProxyClasses() — Sets a boolean flag that indicates whether proxy classes should always be regenerated during each script execution.
- setClassMetadataFactoryName() — Set a class metadata factory.
- setCustomDatetimeFunctions() — Sets a map of custom DQL date/time functions.
- setCustomHydrationModes() — Set the custom hydrator modes in one pass.
- setCustomNumericFunctions() — Sets a map of custom DQL numeric functions.
- setCustomStringFunctions() — Sets a map of custom DQL string functions.
- setDefaultRepositoryClassName() — Set default repository class.
- setEntityNamespaces() — Set the entity alias map
- setHydrationCacheImpl() — Sets the cache driver implementation that is used for the hydration cache (SQL cache).
- setMetadataCacheImpl() — Sets the cache driver implementation that is used for metadata caching.
- setMetadataDriverImpl() — Sets the cache driver implementation that is used for metadata caching.
- setNamingStrategy() — Set naming strategy.
- setProxyDir() — Sets the directory where Doctrine generates any necessary proxy class files.
- setProxyNamespace() — Sets the namespace where proxy classes reside.
- setQueryCacheImpl() — Sets the cache driver implementation that is used for the query cache (SQL cache).
- setQuoteStrategy() — Set quote strategy.
Inherited from Doctrine\DBAL\Configuration
public
- getFilterSchemaAssetsExpression() — Return filter schema assets expression.
- getResultCacheImpl() — Gets the cache driver implementation that is used for query result caching.
- getSQLLogger() — Gets the SQL logger that is used.
- setFilterSchemaAssetsExpression() — Filter schema assets expression.
- setResultCacheImpl() — Sets the cache driver implementation that is used for query result caching.
- setSQLLogger() — Sets the SQL logger to use. Defaults to NULL which means SQL logging is disabled.