PHP Class AppserverIo\Appserver\PersistenceContainer\Doctrine\EntityManagerFactory

Afficher le fichier Open project: appserver-io/appserver

Protected Properties

Свойство Type Description
$metadataMapping array Mapping metadata type to factory method.

Méthodes publiques

Méthode 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 méthode

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
Résultat object The entity manager instance

Property Details

$metadataMapping protected_oe static_oe property

Mapping metadata type to factory method.
protected static array $metadataMapping
Résultat array