ModelBundle/DataFixtures/MongoDB/DemoContent/HomeDataGenerator.php
protected function generateNodeGlobal($language, $routePattern)
    {
        $nodeHome = $this->createBaseNode();
        $nodeHome->setLanguage($language);
        $nodeHome->setNodeId(NodeInterface::ROOT_NODE_ID);
        $nodeHome->setName('Homepage');
        $nodeHome->setVersionName($this->getVersionName($nodeHome));
        $nodeHome->setCreatedBy('fake_admin');
        $nodeHome->setParentId('-');
        $nodeHome->setOrder(0);
        $nodeHome->setRoutePattern($routePattern);
        $nodeHome->setInFooter(false);
        $nodeHome->setInMenu(true);
        $nodeHome->setSitemapChangefreq('hourly');
        $nodeHome->setSitemapPriority('0.8');

        return $nodeHome;
    }
protected function generateNodeGlobal($language, $routePattern)
    {
        $nodeHome = $this->createBaseNode();
        $nodeHome->setLanguage($language);
        $nodeHome->setNodeId(NodeInterface::ROOT_NODE_ID);
        $nodeHome->setName('Homepage');
        $nodeHome->setVersionName($this->getVersionName($nodeHome));
        $nodeHome->setCreatedBy('fake_admin');
        $nodeHome->setParentId('-');
        $nodeHome->setOrder(0);
        $nodeHome->setRoutePattern($routePattern);
        $nodeHome->setInFooter(false);
        $nodeHome->setInMenu(true);
        $nodeHome->setSitemapChangefreq('hourly');
        $nodeHome->setSitemapPriority('0.8');

        return $nodeHome;
    }
@param string $language
@param string $routePattern

@return Node