src/Kunstmaan/DashboardBundle/Helper/Google/Analytics/ConfigHelper.php
public function getAccountId($configId = false)
    {
        if (!$this->accountId || $configId) {
            /** @var AnalyticsConfigRepository $analyticsConfigRepository */
            $analyticsConfigRepository = $this->em->getRepository('KunstmaanDashboardBundle:AnalyticsConfig');
            if ($configId) {
                $this->accountId = $analyticsConfigRepository->find($configId)->getAccountId();
            } else {
                $this->accountId = $analyticsConfigRepository->findFirst()->getAccountId();
            }
        }

        return $this->accountId;
    }
public function getAccountId($configId = false)
    {
        if (!$this->accountId || $configId) {
            /** @var AnalyticsConfigRepository $analyticsConfigRepository */
            $analyticsConfigRepository = $this->em->getRepository('KunstmaanDashboardBundle:AnalyticsConfig');
            if ($configId) {
                $this->accountId = $analyticsConfigRepository->find($configId)->getAccountId();
            } else {
                $this->accountId = $analyticsConfigRepository->findFirst()->getAccountId();
            }
        }

        return $this->accountId;
    }
public function getAccountId ( $ configId = false ) { if ( ! $ this -> accountId || $ configId ) { /** @var AnalyticsConfigRepository $analyticsConfigRepository */ $ analyticsConfigRepository = $ this -> em -> getRepository ( 'KunstmaanDashboardBundle:AnalyticsConfig' ) ; if ( $ configId ) { $ this -> accountId = $ analyticsConfigRepository -> find ( $ configId ) -> getAccountId ( ) ; } else { $ this -> accountId = $ analyticsConfigRepository -> findFirst ( ) -> getAccountId ( ) ; } } return $ this -> accountId ; }
Get the accountId from the database

@return string $accountId
Get the accountId from the database