delete() public method

public delete ( )
コード例 #1
0
ファイル: GameUser.php プロジェクト: thuliumcc/dartboard
 /**
  * @return bool
  */
 public function delete()
 {
     Hit::where(['game_user_id' => $this->id])->deleteAll();
     return parent::delete();
 }
コード例 #2
0
ファイル: Game.php プロジェクト: thuliumcc/dartboard
 /**
  * @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();
 }