Bundle/CoreBundle/Entity/View.php
public function setChildren($children)
    {
        $this->children = $children;
        if ($children !== null) {
            foreach ($children as $child) {
                $child->setParent($this);
            }
        }

        return $this;
    }
public function setChildren($children)
    {
        $this->children = $children;
        if ($children !== null) {
            foreach ($children as $child) {
                $child->setParent($this);
            }
        }

        return $this;
    }
public function setChildren ( $ children ) { $ this -> children = $ children ; if ( $ children !== null ) { foreach ( $ children as $ child ) { $ child -> setParent ( $ this ) ; } } return $ this ; }
Set children.

@param View[] $children

@return View
Set children .