* update report group assignment (from drag & drop) * @param $id * @param $groupId * @return bool * @throws Exception */
($id, $groupId)
| 287 | * @throws Exception |
| 288 | */ |
| 289 | public function updateGroup($id, $groupId) |
| 290 | { |
| 291 | $sql = $this->db->getQueryBuilder(); |
| 292 | $sql->update(self::TABLE_NAME) |
| 293 | ->set('parent', $sql->createNamedParameter($groupId)) |
| 294 | ->where($sql->expr()->eq('user_id', $sql->createNamedParameter($this->userId))) |
| 295 | ->andWhere($sql->expr()->eq('id', $sql->createNamedParameter($id))); |
| 296 | $sql->executeStatement(); |
| 297 | return true; |
| 298 | } |
| 299 | |
| 300 | public function updateName(int $id, string $name): bool |
| 301 | { |