PHP Класс AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\EntityManagerFactory

Автор: Tim Wagner ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
factory ( AppserverIo\Psr\Application\ApplicationInterface $application, AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface $persistenceUnitNode ) : object Creates a new entity manager instance based on the passed configuration.
getCacheImpl ( AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface $persistenceUnit, AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\CacheFactories\CacheConfigurationNodeInterface $cacheConfiguration ) : CacheProvider Factory method to create a new cache instance from the passed configuration.

Описание методов

factory() публичный статический метод

Creates a new entity manager instance based on the passed configuration.
public static factory ( AppserverIo\Psr\Application\ApplicationInterface $application, AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface $persistenceUnitNode ) : object
$application AppserverIo\Psr\Application\ApplicationInterface The application instance to create the entity manager for
$persistenceUnitNode AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface The datasource configuration
Результат object The entity manager instance

getCacheImpl() публичный статический метод

Factory method to create a new cache instance from the passed configuration.
public static getCacheImpl ( AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface $persistenceUnit, AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\CacheFactories\CacheConfigurationNodeInterface $cacheConfiguration ) : CacheProvider
$persistenceUnit AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface The persistence unit node
$cacheConfiguration AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\CacheFactories\CacheConfigurationNodeInterface The cache configuration
Результат Doctrine\Common\Cache\CacheProvider The cache instance