[PHP] Re: problem with embeded objects and reference

2004-07-01 Thread Daniel Kullik
Vincent Dupont wrote: Hi, could anyone help on this 'by reference' problem. I have 2 classes. The main class as a child class. The child class has properties (array) I would like to be able to manipulate the child's properties even after the child has been inserted into the main class. Does this

[PHP] Re: problem with embeded objects and reference

2004-06-30 Thread Red Wingate
Not sure over here, but isn't it $main-setChild($child1); Vincent Dupont wrote: Hi, could anyone help on this 'by reference' problem. I have 2 classes. The main class as a child class. The child class has properties (array) I would like to be able to manipulate the child's properties even after

[PHP] Re: problem with embeded objects and reference

2004-06-30 Thread Red Wingate
Lill example: [...] $child1-setproperty(first);//displayed $main-setChild($child1); $child1-setproperty(second); //NOT DISPLAYED [...] $child1 is passed to $main with property 'first'. Later on you update $child1, but not $main-child, as they are not the same objects ( equal but not same ). So i