/** * * 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'); }
/** * * 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(); }
/** * * 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'); }