public function removeQuestion(QuestionInterface $question)
    {
        if ($this->hasQuestion($question)) {
            $this->questions->removeElement($question);
            $question->setCategory(null);
        }

        return $this;
    }
public function removeQuestion(QuestionInterface $question)
    {
        if ($this->hasQuestion($question)) {
            $this->questions->removeElement($question);
            $question->setCategory(null);
        }

        return $this;
    }
public function removeQuestion ( QuestionInterface $ question ) { if ( $ this -> hasQuestion ( $ question ) ) { $ this -> questions -> removeElement ( $ question ) ; $ question -> setCategory ( null ) ; } return $ this ; }
Remove question from category

@param QuestionInterface $question

@return $this
Remove question from category