Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Connection::resetTransactionNestingLevel PHP Method

resetTransactionNestingLevel() private method

This should be safe for a new established connection.
    private function resetTransactionNestingLevel()
    {
        if (!$this->selfReflectionNestingLevelProperty instanceof \ReflectionProperty) {
            $reflection = new \ReflectionClass('Doctrine\\DBAL\\Connection');
            $this->selfReflectionNestingLevelProperty = $reflection->getProperty('_transactionNestingLevel');
            $this->selfReflectionNestingLevelProperty->setAccessible(true);
        }
        $this->selfReflectionNestingLevelProperty->setValue($this, 0);
    }