ModelBundle/DataFixtures/MongoDB/LoadNodeRootFunctionalDemoData.php
public function load(ObjectManager $manager)
    {
        $languages = array("de", "en", "fr");
        foreach($languages as $language) {
            $this->generateGlobalBlock($manager, $language);
        }

        $this->addNode($manager, new NodeRootFunctionalDataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new NodeRootFunctionalDataGenerator($this, $this->container, $manager, 2, 'status-draft'), array('fr'));
        $this->addNode($manager, new LegalDataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new ContactDataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new CommunityDataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new NewsDataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new Error404DataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new Error503DataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new AutoPublishDataGenerator($this, $this->container, $manager), array('fr', 'en'));
    }
public function load(ObjectManager $manager)
    {
        $languages = array("de", "en", "fr");
        foreach($languages as $language) {
            $this->generateGlobalBlock($manager, $language);
        }

        $this->addNode($manager, new NodeRootFunctionalDataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new NodeRootFunctionalDataGenerator($this, $this->container, $manager, 2, 'status-draft'), array('fr'));
        $this->addNode($manager, new LegalDataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new ContactDataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new CommunityDataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new NewsDataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new Error404DataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new Error503DataGenerator($this, $this->container, $manager), $languages);
        $this->addNode($manager, new AutoPublishDataGenerator($this, $this->container, $manager), array('fr', 'en'));
    }
Load data fixtures with the passed EntityManager

@param ObjectManager $manager