ModelBundle/DataFixtures/MongoDB/LoadContentThousandData.php
protected function addNewsAttributes($news, $title, $intro, $text)
    {
        $news->addAttribute($title);
        $news->addAttribute($this->generateContentAttribute('publish_start', '2014-08-26', 'date'));
        $news->addAttribute($this->generateContentAttribute('publish_end', '2014-12-19', 'date'));
        $news->addAttribute($intro);
        $news->addAttribute($text);

        return $news;
    }
protected function addNewsAttributes($news, $title, $intro, $text)
    {
        $news->addAttribute($title);
        $news->addAttribute($this->generateContentAttribute('publish_start', '2014-08-26', 'date'));
        $news->addAttribute($this->generateContentAttribute('publish_end', '2014-12-19', 'date'));
        $news->addAttribute($intro);
        $news->addAttribute($text);

        return $news;
    }
protected function addNewsAttributes ( $ news , $ title , $ intro , $ text ) { $ news -> addAttribute ( $ title ) ; $ news -> addAttribute ( $ this -> generateContentAttribute ( 'publish_start' , '2014-08-26' , 'date' ) ) ; $ news -> addAttribute ( $ this -> generateContentAttribute ( 'publish_end' , '2014-12-19' , 'date' ) ) ; $ news -> addAttribute ( $ intro ) ; $ news -> addAttribute ( $ text ) ; return $ news ; }
Fill news attributes

@param Content          $news
@param ContentAttribute $title
@param ContentAttribute $intro
@param ContentAttribute $text

@return Content
Fill news attributes