예제 #1
0
 public function delete(Entity $entity)
 {
     $query = $this->queryBuilder->delete($this->getTableName(), $entity->getId());
     try {
         $result = $query->execute();
     } catch (\PDOException $ex) {
         throw new QueryException($ex, $query);
     }
     return $result;
 }