2009/10/31 AdriáÏ De la Cruz <adrian / lobotuerto.com>:
> Hi guys,
>
> I'm seeing some strange behavior with YAML serialization/deserialization
> and would like someone to explain what's going on with this, if
> possible.
>

It seems that it has something to do with order. If you check
generated YAML, the members are listed alphabetically.
So if you call it @bparent it comes before @members, and after
@members if it's @parents.

If I comment out line "child.team = self" I get proper @members, but
without @team attribute.

Hypothesis is that order of object creation is important here. I
suggest browsing ruby bugtracker and or sources :)