In this fifth part of the series, I add two additional classes to our sample PHP application. They will be responsible for handling collections of generic entities, and more specifically, collections of user objects. In truth, these new classes will be simple countable iterators, capable of accessing the entities as if they were array elements.


Read the full article here: Roll Your Own Repository in PHP: Working with Collections of Entities

For more discussion go here: Blog Article Discussion