ModelBundle/DataFixtures/MongoDB/LoadContentData.php
public function generateCar206($language)
    {
        $content = $this->addBaseContent("206_3_portes", "car", 1);
        $content->setName("206 3 portes " . $language);
        $content->setLanguage($language);
        $content->setVersion('2');
        $content->addKeyword($this->getReference('keyword-lorem'));
        $content->addKeyword($this->getReference('keyword-sit'));
        $content->setLinkedToSite(false);
        $content->setSiteId('2');
        $content->setVersionName($this->getVersionName($content));

        $attribute1 = $this->generateContentAttribute('car_name', '206');
        $attribute2 = $this->generateContentAttribute('description',
            'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean non feugiat sem.
            Aliquam a mauris tellus. In hac habitasse platea dictumst. Nunc eget interdum ante,
             id mollis diam. Suspendisse sed magna lectus. Aenean fringilla elementum lorem id
             suscipit. Phasellus feugiat tellus sapien, id tempus nisi ultrices ut.');

        $content->addAttribute($attribute1);
        $content->addAttribute($attribute2);

        return $content;
    }
public function generateCar206($language)
    {
        $content = $this->addBaseContent("206_3_portes", "car", 1);
        $content->setName("206 3 portes " . $language);
        $content->setLanguage($language);
        $content->setVersion('2');
        $content->addKeyword($this->getReference('keyword-lorem'));
        $content->addKeyword($this->getReference('keyword-sit'));
        $content->setLinkedToSite(false);
        $content->setSiteId('2');
        $content->setVersionName($this->getVersionName($content));

        $attribute1 = $this->generateContentAttribute('car_name', '206');
        $attribute2 = $this->generateContentAttribute('description',
            'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean non feugiat sem.
            Aliquam a mauris tellus. In hac habitasse platea dictumst. Nunc eget interdum ante,
             id mollis diam. Suspendisse sed magna lectus. Aenean fringilla elementum lorem id
             suscipit. Phasellus feugiat tellus sapien, id tempus nisi ultrices ut.');

        $content->addAttribute($attribute1);
        $content->addAttribute($attribute2);

        return $content;
    }
@param string $language

@return Content