public function testSaveJobInterview() { $newJobInterview = new JobInterview(); $newJobInterview->setInterviewName("HR Interview"); $newJobInterview->setInterviewDate("2011-04-03"); $newJobInterview->setInterviewTime("08:48"); $newJobInterview->setNote("new note"); $newJobInterview->setCandidateVacancyId(2); $newJobInterviewInterviewer = new JobInterviewInterviewer(); $newJobInterviewInterviewer->setInterviewerId(5); $newJobInterviewInterviewer1 = clone $newJobInterviewInterviewer; $newJobInterviewInterviewer1->setInterviewerId(2); $newJobInterview->getJobInterviewInterviewer()->add($newJobInterviewInterviewer); $newJobInterview->getJobInterviewInterviewer()->add($newJobInterviewInterviewer1); $this->assertEquals(null, $newJobInterview->save()); }