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; }
public function delete($table, $primaryKey = null) { return $this->db->delete($table, $primaryKey); }