PHP Class AppserverIo\Appserver\PersistenceContainer\Doctrine\EntityManagerFactory

Show file Open project: appserver-io/appserver

Protected Properties

Property Type Description
$metadataMapping array Mapping metadata type to factory method.

Public Methods

Method Description
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.

Method Details

factory() public static method

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
return object The entity manager instance

Property Details

$metadataMapping protected static property

Mapping metadata type to factory method.
protected static array $metadataMapping
return array