public function end($history, $status) { $history = $this->findHistoryById($history); $history->status = $status; $history->save(false); }