delete() public method

public delete ( )
Esempio n. 1
0
 /**
  * @return bool
  */
 public function delete()
 {
     Hit::where(['game_user_id' => $this->id])->deleteAll();
     return parent::delete();
 }
Esempio n. 2
0
 /**
  * @return bool
  */
 public function delete()
 {
     $this->current_game_user_id = null;
     $this->winner_game_user_id = null;
     $this->update();
     GameUser::where(['game_id' => $this->id])->deleteEach();
     return parent::delete();
 }