示例#1
0
 public function setUp()
 {
     parent::setUp();
     $this->createModuleData();
     $this->module = $this->em->getRepository('BigfishEavBundle:Module')->find(1);
     $this->columnMapper = $this->container->get('eav.column.mapper');
 }
 public function setUp()
 {
     parent::setUp();
     $this->createModuleData();
     $this->module = $this->em->getRepository('BigfishEavBundle:Module')->find(1);
     /**
      * @var ModuleRepository
      */
     $objectRepository = $this->container->get('eav.module.repository');
     $this->objectRepository = $objectRepository;
 }
 public function setUp()
 {
     parent::setUp();
     $this->createModuleData();
     $this->module = $this->em->getRepository('BigfishEavBundle:Module')->find(1);
     $this->columnMapper = $this->container->get('eav.column.mapper');
     /**
      * @var ModuleRepository
      */
     $objectRepository = new ModuleRepository();
     $objectRepository->setEntityManager($this->em);
     $objectRepository->setColumnMapper($this->columnMapper);
     $objectRepository->getRepository($this->module);
     $this->queryBuilder = new QueryBuilder($objectRepository);
 }
 public function setUp()
 {
     parent::setUp();
     $this->createModuleData();
 }