EntityManagerConfiguration
class EntityManagerConfiguration (View source)
EntityManager configuration handler
Properties
protected ObjectManagerInterface | $objectManager | ||
protected | $settings |
Methods
Injects the Flow settings, the persistence part is kept for further use.
Configure the Doctrine EntityManager according to configuration settings before its creation.
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.
void
configureEntityManager(Connection $connection, Configuration $config, EventManager $eventManager)
Configure the Doctrine EntityManager according to configuration settings before its creation.
Note that this is called via SignalSlot in {\Neos\Flow\Package} and therefore the arguments are defined by what beforeDoctrineEntityManagerCreation provides (leaving the first argument unused here).
protected void
registerEventSubscribers(array $configuredSubscribers, EventManager $eventManager)
No description
protected void
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 void
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.
void
enhanceEntityManager(Configuration $config, EntityManager $entityManager)
Enhance the Doctrine EntityManager by applying post creation settings, like custom filters.