I am using Zend Framework and also try to move towards DDD approach (Domain-Driven Design). I have models, mappers and DbTables for domain objects.
There are many situations when I need to fetch multiple entities of same time, for example -list of all users within the system-, so my user model will have a method 'getAllUsers' which will return all the users (right now its returning an array of all the users, but I am thinking of making a collection class). So far I am using a normal method (non-static) to fetch the collection, and for this purpose, I need to create an 'empty' object. The other option is to convert it into a static method.
I am not sure, which approach is better, keep such methods as non-static or convert them into static methods. And what is the better approach/practice and why? Also which approach closely follow the DDD methodology.
PS: Kindly let me know, if you can think of a better title. And NO its not a course question.