public function testSetInterviewQuestion()
 {
     $alternative = new InterviewQuestionAlternative();
     $intQuestion = new InterviewQuestion();
     $alternative->setInterviewQuestion($intQuestion);
     $this->assertEquals($intQuestion, $alternative->getInterviewQuestion());
 }
Esempio n. 2
0
 /**
  * Add alternatives
  *
  * @param \AppBundle\Entity\InterviewQuestionAlternative $alternatives
  * @return InterviewQuestion
  */
 public function addAlternative(\AppBundle\Entity\InterviewQuestionAlternative $alternatives)
 {
     $this->alternatives[] = $alternatives;
     $alternatives->setInterviewQuestion($this);
     return $this;
 }