Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function delete()
 {
     parent::delete();
     // Remove all the members of a deleted team
     $this->updateProperty($this->members, 'members', 0);
     $this->db->execute("UPDATE `players` SET `team` = NULL WHERE `team` = ?", $this->id);
 }