/** * Load owner (public) data into project object * * @return void */ private function _loadOwnerObject($project) { if (!$this->userRepo) { $this->userRepo = $this->container->get('doctrine')->getRepository('MariusMandalUserBundle:User'); } $user = $this->userRepo->findOneById($project->getOwner())->getPublicUser(); $project->setOwnerObject($user); }
/** * Get all SubProjects * * @return array ? */ public function get($id) { $subProject = $this->repo->findOneById($id); return $subProject; }
/** * Get all Transaction * * @return array ? */ public function get($id) { $transaction = $this->repo->findOneById($id); return $transaction; }