Remove group members before deleting group
This commit is contained in:
parent
f36938b8dd
commit
205e77da0e
@ -127,6 +127,15 @@ final class NodaGroup {
|
||||
*/
|
||||
public function delete(int $group_id):void {
|
||||
|
||||
$this->_mysqli_noda->update_query_by_stmt("DELETE FROM `v_group_persinst`
|
||||
WHERE `group_id` = ?", "i", $group_id);
|
||||
$this->_mysqli_noda->update_query_by_stmt("DELETE FROM `v_group_orte`
|
||||
WHERE `group_id` = ?", "i", $group_id);
|
||||
$this->_mysqli_noda->update_query_by_stmt("DELETE FROM `v_group_zeiten`
|
||||
WHERE `group_id` = ?", "i", $group_id);
|
||||
$this->_mysqli_noda->update_query_by_stmt("DELETE FROM `v_group_tag`
|
||||
WHERE `group_id` = ?", "i", $group_id);
|
||||
|
||||
$this->_mysqli_noda->update_query_by_stmt("DELETE FROM `group`
|
||||
WHERE `group_id` = ?", "i", $group_id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user