AppserverIo\Appserver\PersistenceContainer\Doctrine\DoctrineEntityManagerDecorator::__destruct PHP Method

__destruct() public method

Closes the Doctrine connection if a wrapped instance is available
public __destruct ( )
    public function __destruct()
    {
        // query whether we've a wrapped instance
        if ($wrapped = $this->getWrapped()) {
            $wrapped->getConnection()->close();
        }
    }