I have a task where I must use Table Module (business logic) pattern with Data Mapper (database logic) pattern. As I know it's unusual situation, because DM returns only one row, but TM uses collection of rows. Therefore Table Gateway is recommended to use in this situation.
But I must to use TM with DM. Explain me please, how to get collection of rows using DM with example please, because I'm newbie in patterns.
Aucun commentaire:
Enregistrer un commentaire