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

Method delete

lib/Db/PanoramaMapper.php:176–184  ·  view source on GitHub ↗

* delete report * @param $id * @return bool * @throws Exception */

($id)

Source from the content-addressed store, hash-verified

174 * @throws Exception
175 */
176 public function delete($id)
177 {
178 $sql = $this->db->getQueryBuilder();
179 $sql->delete(self::TABLE_NAME)
180 ->where($sql->expr()->eq('id', $sql->createNamedParameter($id)))
181 ->andWhere($sql->expr()->eq('user_id', $sql->createNamedParameter($this->userId)));
182 $sql->executeStatement();
183 return true;
184 }
185
186 public function updateGroup(int $id, int $groupId)
187 {

Callers 1

deleteByUserMethod · 0.45

Calls 1

eqMethod · 0.80

Tested by

no test coverage detected