final protected function initPageMetas(Page $page)
    {
        if (!isset($this->pageMetas))
        {
            $this->pageMetas = array();
            if ($page->getId() > 0)
            {
                $metas = $this->doctrine->getRepository('FulgurioLightCMSBundle:PageMeta')->findByPage($page->getId());
                foreach ($metas as $meta)
                {
                    $this->pageMetas[$meta->getMetaKey()] = $meta;
                }
            }
        }
    }
final protected function initPageMetas(Page $page)
    {
        if (!isset($this->pageMetas))
        {
            $this->pageMetas = array();
            if ($page->getId() > 0)
            {
                $metas = $this->doctrine->getRepository('FulgurioLightCMSBundle:PageMeta')->findByPage($page->getId());
                foreach ($metas as $meta)
                {
                    $this->pageMetas[$meta->getMetaKey()] = $meta;
                }
            }
        }
    }
final protected function initPageMetas ( Page $ page ) { if ( ! isset ( $ this -> pageMetas ) ) { $ this -> pageMetas = array ( ) ; if ( $ page -> getId ( ) > 0 ) { $ metas = $ this -> doctrine -> getRepository ( 'FulgurioLightCMSBundle:PageMeta' ) -> findByPage ( $ page -> getId ( ) ) ; foreach ( $ metas as $ meta ) { $ this -> pageMetas [ $ meta -> getMetaKey ( ) ] = $ meta ; } } } }
Init page meta of page

@param Page $page
Init page meta of page