EntityManagerConfiguration
class EntityManagerConfiguration (View source)
EntityManager configuration handler
Properties
protected ObjectManagerInterface | $objectManager | ||
protected array | $settings |
Methods
Injects the Flow settings, the persistence part is kept for further use.
Configure the Doctrine EntityManager according to configuration settings before it's creation.
No description
No description
No description
Apply configured settings regarding DQL to the Doctrine Configuration.
Apply basic cache configuration for the metadata, query and result caches.
Apply configured settings regarding Doctrine's second level cache.
Enhance the Doctrine EntityManager by applying post creation settings, like custom filters.
Details
void
injectSettings(array $settings)
Injects the Flow settings, the persistence part is kept for further use.
configureEntityManager(Connection $connection, Configuration $config, EventManager $eventManager)
Configure the Doctrine EntityManager according to configuration settings before it's creation.
protected
enableSqlLogger(string $configuredSqlLogger, Configuration $doctrineConfiguration)
No description
protected
registerEventSubscribers(array $configuredSubscribers, EventManager $eventManager)
No description
protected
registerEventListeners(array $configuredListeners, EventManager $eventManager)
No description
protected void
applyDqlSettingsToConfiguration(array $configuredSettings, Configuration $doctrineConfiguration)
Apply configured settings regarding DQL to the Doctrine Configuration.
At the moment, these are custom DQL functions.
protected
applyCacheConfiguration(Configuration $config)
Apply basic cache configuration for the metadata, query and result caches.
protected void
applySecondLevelCacheSettingsToConfiguration(array $configuredSettings, Configuration $doctrineConfiguration)
Apply configured settings regarding Doctrine's second level cache.
enhanceEntityManager(Configuration $config, EntityManager $entityManager)
Enhance the Doctrine EntityManager by applying post creation settings, like custom filters.