* @throws Exception */
($thresholdId)
| 123 | * @throws Exception |
| 124 | */ |
| 125 | public function deleteThreshold($thresholdId) |
| 126 | { |
| 127 | $sql = $this->db->getQueryBuilder(); |
| 128 | $sql->delete(self::TABLE_NAME) |
| 129 | ->where($sql->expr()->eq('id', $sql->createNamedParameter($thresholdId))) |
| 130 | ->andWhere($sql->expr()->eq('user_id', $sql->createNamedParameter($this->userId))); |
| 131 | $sql->executeStatement(); |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * @throws Exception |