示例#1
0
 /**
  * @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();
     }
 }
示例#2
0
 /**
  * @test
  */
 public function itShouldAllowToSetIsBackgroundFilled()
 {
     $isBackgroundFilled = self::SOME_BOOL;
     $this->ticketType->setIsBackgroundFilled($isBackgroundFilled);
     $this->assertEquals($isBackgroundFilled, $this->ticketType->getIsBackgroundFilled());
 }