PHP Class AppserverIo\Appserver\PersistenceContainer\Doctrine\DoctrineEntityManagerDecorator

Inheritance: extends Doctrine\ORM\Decorator\EntityManagerDecorator
Show file Open project: appserver-io/appserver

Public Methods

Method 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 method

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

__sleep() public method

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

getConnection() public method

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

getWrapped() public method

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