MCPcopy Create free account
hub / github.com/Rello/analytics / updateGroup

Method updateGroup

lib/Db/ReportMapper.php:289–298  ·  view source on GitHub ↗

* update report group assignment (from drag & drop) * @param $id * @param $groupId * @return bool * @throws Exception */

($id, $groupId)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

setMethod · 0.80
eqMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected