Bundle/BlogBundle/Entity/BlogCategory.php
public function setBlog(Blog $blog)
    {
        $this->blog = $blog;
        foreach ($this->children as $child) {
            $child->setBlog($blog);
        }

        return $this;
    }
public function setBlog(Blog $blog)
    {
        $this->blog = $blog;
        foreach ($this->children as $child) {
            $child->setBlog($blog);
        }

        return $this;
    }
public function setBlog ( Blog $ blog ) { $ this -> blog = $ blog ; foreach ( $ this -> children as $ child ) { $ child -> setBlog ( $ blog ) ; } return $ this ; }
Set blog.

@param string $blog

@return $this
Set blog .