PHP Class AppserverIo\Appserver\PersistenceContainer\Doctrine\DoctrineEntityManagerDecorator

Inheritance: extends Doctrine\ORM\Decorator\EntityManagerDecorator
Afficher le fichier Open project: appserver-io/appserver

Méthodes publiques

Méthode Description
__destruct ( ) Closes the Doctrine connection if a wrapped instance is available
__sleep ( ) : array Sleep method to unset the PDO connection before serializing the entity manager instance.
getConnection ( ) : Doctrine\DBAL\Connection Returns the entity manager's connection instance.
getWrapped ( ) : Doctrine\ORM\EntityManagerInterface Returns the wrapped entity manager instance.

Method Details

__destruct() public méthode

Closes the Doctrine connection if a wrapped instance is available
public __destruct ( )

__sleep() public méthode

Sleep method to unset the PDO connection before serializing the entity manager instance.
public __sleep ( ) : array
Résultat array The array with the properties to serialize

getConnection() public méthode

Returns the entity manager's connection instance.
public getConnection ( ) : Doctrine\DBAL\Connection
Résultat Doctrine\DBAL\Connection The connection instance

getWrapped() public méthode

Returns the wrapped entity manager instance.
public getWrapped ( ) : Doctrine\ORM\EntityManagerInterface
Résultat Doctrine\ORM\EntityManagerInterface The wrapped entity manager instance