implement clean deletion of Seminaries
This commit is contained in:
parent
4dca3e8089
commit
60b7f12f79
25 changed files with 410 additions and 9 deletions
|
|
@ -1402,6 +1402,18 @@
|
|||
$this->db->setAutocommit(true);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Delete all Achievements of a Seminary.
|
||||
*
|
||||
* @param int $seminaryId ID of Seminary to delete Achievements of
|
||||
*/
|
||||
public function deleteAchievementsOfSeminary($seminaryId)
|
||||
{
|
||||
// Delete Achievements
|
||||
$this->db->query('DELETE FROM achievements WHERE seminary_id = ?', 'i', $seminaryId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue