public function rollBack() { $this->_rollback = true; $this->_stack--; if ($this->_stack == 0) { $this->_rollback = false; parent::rollBack(); } }