예제 #1
0
파일: Db.php 프로젝트: hitechdk/Codeception
 protected function removeInserted()
 {
     foreach (array_reverse($this->insertedRows) as $row) {
         try {
             $this->driver->deleteQueryByCriteria($row['table'], $row['primary']);
         } catch (\Exception $e) {
             $this->debug("coudn't delete record " . json_encode($row['primary']) . " from {$row['table']}");
         }
     }
     $this->insertedRows = [];
 }