src/Sulu/Bundle/CategoryBundle/Api/Category.php
public function getChildren()
    {
        $children = [];
        if ($this->entity->getChildren()) {
            foreach ($this->entity->getChildren() as $child) {
                $children[] = new self($child, $this->locale);
            }
        }

        return $children;
    }
public function getChildren()
    {
        $children = [];
        if ($this->entity->getChildren()) {
            foreach ($this->entity->getChildren() as $child) {
                $children[] = new self($child, $this->locale);
            }
        }

        return $children;
    }
public function getChildren ( ) { $ children = [ ] ; if ( $ this -> entity -> getChildren ( ) ) { foreach ( $ this -> entity -> getChildren ( ) as $ child ) { $ children [ ] = new self ( $ child , $ this -> locale ) ; } } return $ children ; }
Returns the children of a category.

@VirtualProperty
@SerializedName("children")
@Groups({"fullCategory"})

@return Category[]
Returns the children of a category .