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

        $attribute1 = $this->generateContentAttribute('car_name', 'Ds3');
        $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);
        $this->setReference("ds_3_".$language, $content);

        return $content;
    }
public function generateCarDs3($language)
    {
        $content = $this->addBaseContent("ds_3", "car", 1);
        $content->setDeleted(false);
        $content->setName("DS 3 " . $language);
        $content->setLanguage($language);
        $content->setVersion('1');
        $content->addKeyword($this->getReference('keyword-lorem'));
        $content->setLinkedToSite(true);
        $content->setSiteId('2');
        $content->setVersionName($this->getVersionName($content));

        $attribute1 = $this->generateContentAttribute('car_name', 'Ds3');
        $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);
        $this->setReference("ds_3_".$language, $content);

        return $content;
    }
@param string $language

@return Content