* delete report * @param $id * @return bool * @throws Exception */
($id)
| 338 | * @throws Exception |
| 339 | */ |
| 340 | public function delete($id) |
| 341 | { |
| 342 | $sql = $this->db->getQueryBuilder(); |
| 343 | $sql->delete(self::TABLE_NAME) |
| 344 | ->where($sql->expr()->eq('id', $sql->createNamedParameter($id))); |
| 345 | $sql->executeStatement(); |
| 346 | return true; |
| 347 | } |
| 348 | |
| 349 | /** |
| 350 | * search reports by search string |