public function removeAnswerById($answerId) { $answer = $this->answerDao->findById($answerId); if ($answer === null) { return; } $this->removeAnswerByDto($answer); }