is there a way to traverse an object to get the parent object data?
With \"parent object\" I don\'t mean the parent class, but literally object.
Here an example, in a javasc
I'm pretty sure, that PHP does not have something like that.
Your solution of passing the parent-object to the child is the best solution, I think. You should consider to set your Parent-property only in the constructor of the child to prevent multiple parents from having the same child.