/**
  * @param Dependants   $dependants
  * @param ParamFetcher $paramFetcher
  * @return Questionnaire
  * @throws \Exception
  */
 public function updateDependants(Dependants $dependants, ParamFetcher $paramFetcher)
 {
     $entityManager = $this->getEntityManager();
     $dependants->setPartner($paramFetcher->get('partner'))->setKids($paramFetcher->get('kids'))->setParents($paramFetcher->get('parents'))->setGrandChildren($paramFetcher->get('grandchildren'))->setFriends($paramFetcher->get('friends'))->setSiblings($paramFetcher->get('siblings'))->setPets($paramFetcher->get('pets'))->setNotRelevant($paramFetcher->get('relevant'))->setCompletedDate(new \DateTime());
     $entityManager->persist($dependants);
     $entityManager->flush($dependants);
     return $this->getParentQuestionnaireForSection($dependants);
 }
 public function testGetSetPartner()
 {
     $this->assertFalse($this->instance->isPartner());
     $this->assertTrue($this->instance->setPartner(true) instanceof Dependants);
     $this->assertTrue($this->instance->isPartner());
 }