public function testGetSetNoTime()
 {
     $this->assertFalse($this->instance->isNoTime());
     $this->assertTrue($this->instance->setNoTime(true) instanceof Hindrances);
     $this->assertTrue($this->instance->isNoTime());
 }
 /**
  * @param Hindrances   $hindrances
  * @param ParamFetcher $paramFetcher
  * @return Questionnaire
  * @throws \Exception
  */
 public function updateHindrances(Hindrances $hindrances, ParamFetcher $paramFetcher)
 {
     $entityManager = $this->getEntityManager();
     $hindrances->setNoTime($paramFetcher->get('time'))->setOtherPeople($paramFetcher->get('people'))->setInsecurity($paramFetcher->get('insecurity'))->setNoMoney($paramFetcher->get('money'))->setLackMotivation($paramFetcher->get('motivation'))->setNotRelevant($paramFetcher->get('relevant'))->setCompletedDate(new \DateTime());
     $entityManager->persist($hindrances);
     $entityManager->flush($hindrances);
     return $this->getParentQuestionnaireForSection($hindrances);
 }