public function disqualify(User $user, $comment)
{
if (!$this->isQualified()) {
return false;
}
DB::transaction(function () use($user, $comment) {
$this->events()->create(['type' => BeatmapsetEvent::DISQUALIFY, 'user_id' => $user->user_id, 'comment' => $comment]);
$this->approved = self::STATES['pending'];
$this->save();
});
return true;
}