Exemplo n.º 1
0
 /**
  * 
  * Class constructor
  * @param ContainerInterface
  *
  */
 public function __construct(ContainerInterface $container)
 {
     $this->container = $container;
     $this->doctrine = $this->container->get('doctrine');
     $this->em = $this->doctrine->getManager();
     $this->repo = $this->doctrine->getRepository('UKMecoBundle:Transaction');
 }
Exemplo n.º 2
0
 /**
  * 
  * Class constructor
  * @param ContainerInterface
  *
  */
 public function __construct(ContainerInterface $container)
 {
     $this->container = $container;
     $this->doctrine = $this->container->get('doctrine');
     $this->em = $this->doctrine->getManager();
     $this->repo = $this->doctrine->getRepository('UKMecoBundle:SubProject');
     $this->environment = $this->container->get('kernel')->getEnvironment();
 }
Exemplo n.º 3
0
 /**
  * 
  * Class constructor
  * @param ContainerInterface
  *
  */
 public function __construct(ContainerInterface $container)
 {
     $this->container = $container;
     $this->doctrine = $this->container->get('doctrine');
     $this->em = $this->doctrine->getManager();
     $this->budgetRepo = $this->doctrine->getRepository('UKMecoBundle:Budget');
     $this->projectRepo = $this->doctrine->getRepository('UKMecoBundle:Project');
     $this->subProjectRepo = $this->doctrine->getRepository('UKMecoBundle:SubProject');
     $this->projectAllocatedAmountRepo = $this->doctrine->getRepository('UKMecoBundle:ProjectAllocatedAmount');
     $this->subProjectAllocatedAmountRepo = $this->doctrine->getRepository('UKMecoBundle:SubProjectAllocatedAmount');
     $this->transactionRepo = $this->doctrine->getRepository('UKMecoBundle:Transaction');
 }