/** * @return null */ private function unsetCurrentFallbackTicketType() { /** * @var \Jimdo\PrintTicketBundle\Entity\TicketTypeRepository */ $repository = $this->entityManager->getRepository('JimdoJimFlow\\PrintTicketBundle:TicketType'); foreach ($repository->findBeingFallbackAndNotBeingEntity($this->entity->getId()) as $entity) { $entity->setIsFallback(false); $this->entityManager->persist($entity); $this->entityManager->flush(); } }
/** * @test */ public function itShouldAllowToSetIsBackgroundFilled() { $isBackgroundFilled = self::SOME_BOOL; $this->ticketType->setIsBackgroundFilled($isBackgroundFilled); $this->assertEquals($isBackgroundFilled, $this->ticketType->getIsBackgroundFilled()); }