plugin/exo/Entity/Attempt/Paper.php
public function removeAnswer(Answer $answer)
    {
        if ($this->answers->contains($answer)) {
            $this->answers->removeElement($answer);
        }
    }
public function removeAnswer(Answer $answer)
    {
        if ($this->answers->contains($answer)) {
            $this->answers->removeElement($answer);
        }
    }
public function removeAnswer ( Answer $ answer ) { if ( $ this -> answers -> contains ( $ answer ) ) { $ this -> answers -> removeElement ( $ answer ) ; } }
Removes an answer.

@param Answer $answer
Removes an answer .