/** * @inheritdoc */ public function getTransactionNestingLevel() { $transactionNestingLevel = parent::getTransactionNestingLevel(); if ($this->isWrapped) { $transactionNestingLevel--; } return $transactionNestingLevel; }