PHP Class Neos\Flow\Persistence\Doctrine\EntityManagerFactory

Mostra file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$environment Neos\Flow\Utility\Environment
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$reflectionService Neos\Flow\Reflection\ReflectionService
$settings array

Public Methods

Method Description
create ( ) : EntityManager Factory method which creates an EntityManager.
injectSettings ( array $settings ) : void Injects the Flow settings, the persistence part is kept for further use.

Protected Methods

Method Description
applyDqlSettingsToConfiguration ( array $configuredSettings, Doctrine\ORM\Configuration $doctrineConfiguration ) : void Apply configured settings regarding DQL to the Doctrine Configuration.
applySecondLevelCacheSettingsToConfiguration ( array $configuredSettings, Doctrine\ORM\Configuration $doctrineConfiguration ) : void Apply configured settings regarding Doctrine's second level cache.
buildEventManager ( ) : Doctrine\Common\EventManager Add configured event subscribers and listeners to the event manager

Method Details

applyDqlSettingsToConfiguration() protected method

At the moment, these are custom DQL functions.
protected applyDqlSettingsToConfiguration ( array $configuredSettings, Doctrine\ORM\Configuration $doctrineConfiguration ) : void
$configuredSettings array
$doctrineConfiguration Doctrine\ORM\Configuration
return void

applySecondLevelCacheSettingsToConfiguration() protected method

Apply configured settings regarding Doctrine's second level cache.
protected applySecondLevelCacheSettingsToConfiguration ( array $configuredSettings, Doctrine\ORM\Configuration $doctrineConfiguration ) : void
$configuredSettings array
$doctrineConfiguration Doctrine\ORM\Configuration
return void

buildEventManager() protected method

Add configured event subscribers and listeners to the event manager
protected buildEventManager ( ) : Doctrine\Common\EventManager
return Doctrine\Common\EventManager

create() public method

Factory method which creates an EntityManager.
public create ( ) : EntityManager
return Doctrine\ORM\EntityManager

injectSettings() public method

Injects the Flow settings, the persistence part is kept for further use.
public injectSettings ( array $settings ) : void
$settings array
return void

Property Details

$environment protected_oe property

protected Environment,Neos\Flow\Utility $environment
return Neos\Flow\Utility\Environment

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface

$reflectionService protected_oe property

protected ReflectionService,Neos\Flow\Reflection $reflectionService
return Neos\Flow\Reflection\ReflectionService

$settings protected_oe property

protected array $settings
return array