Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function delete(array $entities)
 {
     if (!$entities) {
         // If no IDs or invalid IDs were passed, do nothing.
         return;
     }
     $transaction = $this->database->startTransaction();
     try {
         parent::delete($entities);
         // Ignore replica server temporarily.
         db_ignore_replica();
     } catch (\Exception $e) {
         $transaction->rollback();
         watchdog_exception($this->entityTypeId, $e);
         throw new EntityStorageException($e->getMessage(), $e->getCode(), $e);
     }
 }