Hi Laserlight.
Thanks for taking the time to explain your thoughts on the matter. Do I understand what you are said below is that it really depends on what it is we need to model, and what data is needed to provide for a specific view/page?
laserlight wrote:...we should look at what we want to model in the problem domain. In different parts of the script, we might use different classes that access the same underlying storage, but model the entities slightly differently.
If so, I think then what you are saying is that in some cases, creating JOINs in the classes is certainly acceptable.
Here is another question then: Can I create an object that holds and returns a multi-dimensional array, such as:
$products->get(array(0,1));
Holds...
PRODUCTS[0][name] , PRODUCTS[0][image], PRODUCTS[0][description]
PRODUCTS[1][name] , PRODUCTS[1][image], PRODUCTS[1][description]
OR, is it best that I put each array item into it's own object?
$umbrella = $products->get(0);
Holds...
PRODUCTS[0][name] , PRODUCTS[0][image], PRODUCTS[0][description]
and
$goulashes = $products->get(1);
PRODUCTS[1][name] , PRODUCTS[1][image], PRODUCTS[1][description]
What are your thoughts on this?