Sorry for this really bad title.
I have an object class, and an objectManager class used to get all the objects. (This is an example).
I can create an object with new Object($id);
If the id argument is present then the object make an sql query and fill itself with the data.
I want to make a table of all my objects, displaying their values.
Should i use the objectManager class to make a big SQL query that will return everything I need, or juste get a list of id and then load each object individually in a loop ?
I think that making only one query is better, but the code is really easier to read with the second solution.
What's your favorite method ?
Thanks