I have an order object which contains an array of product objects. I pass a reference of the order to each product object. I was surprised, when outputting the properties of the order to have *RECURSION* plastered over my page. Apparently this is normal. But it got me wondering whether the approach I've taken is the best one, or if there is something better/more elegant. Any comments? Is there a better way to access the order object from within the product object?



Reply With Quote

Like the idea of an order properties object, though.
Bookmarks