function delete() { global $db; // has to move contacts to another station if they are used elsewhere! sotf_Contact::moveContactsFromStation($this); parent::delete(); }