src/Kunstmaan/MediaBundle/Entity/Folder.php
public function addChild(Folder $child)
    {
        $this->children[] = $child;
        $child->setParent($this);

        return $this;
    }
public function addChild(Folder $child)
    {
        $this->children[] = $child;
        $child->setParent($this);

        return $this;
    }
public function addChild ( Folder $ child ) { $ this -> children [ ] = $ child ; $ child -> setParent ( $ this ) ; return $ this ; }
Add a child

@param Folder $child

@return Folder
Add a child