src/Kunstmaan/DashboardBundle/Command/GoogleAnalyticsDataCollectCommand.php
private function getSingleOverview($overviewId)
    {
        // get specified overview
        $overviewRepository = $this->em->getRepository('KunstmaanDashboardBundle:AnalyticsOverview');
        $overview = $overviewRepository->find($overviewId);

        if (!$overview) {
            throw new \Exception('Unkown overview ID');
        }

        return $overview;
    }
private function getSingleOverview($overviewId)
    {
        // get specified overview
        $overviewRepository = $this->em->getRepository('KunstmaanDashboardBundle:AnalyticsOverview');
        $overview = $overviewRepository->find($overviewId);

        if (!$overview) {
            throw new \Exception('Unkown overview ID');
        }

        return $overview;
    }
private function getSingleOverview ( $ overviewId ) { // get specified overview $ overviewRepository = $ this -> em -> getRepository ( 'KunstmaanDashboardBundle:AnalyticsOverview' ) ; $ overview = $ overviewRepository -> find ( $ overviewId ) ; if ( ! $ overview ) { throw new \ Exception ( 'Unkown overview ID' ) ; } return $ overview ; }
get a single overview

@param int $overviewId

@return AnalyticsOverview
get a single overview