help using ArrayCollection with Tree Component!
Here is the issue. I'm currently getting an ArrayCollection from my server that I need to load into a tree component. The ArrayCollection is structured something like this.
[0]
|_ group = "friends"
|_ name = "donald"
|_ status = "online"
[1]
|_ group = "business"
|_ name = "steve"
|_ status = "online"
[2]
|_ group = "friends"
|_ name = "brian"
|_ status = "offline"
Basically what I want to do is create a tree.. and I want the root nodes to be "group" ... and when that node expands shows all the name's from that group... so the tree should look like.
> friends
--- donald
--- brian
> business
--- steve
How can I do this with the ArrayCollection?
|