PHP 클래스 AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\EntityManagerFactory

파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

공개 메소드들

메소드 설명
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