コード例 #1
0
 /**
  * @param \Exception $failureCause
  */
 public function rollback(\Exception $failureCause)
 {
     $this->registeredAggregates->clear();
     $this->stagingEvents->clear();
     try {
         if ($this->isTransactional()) {
             $this->transactionManager->rollbackTransaction();
         }
     } finally {
         $this->listeners->onRollback($this, $failureCause);
     }
 }
コード例 #2
0
 private function startTransaction()
 {
     if ($this->isTransactional()) {
         $this->transactionManager->startTransaction();
     }
 }