In this second tutorial of the series, I add to the previous UoW class a pair of collaborators that it needs to function properly. These are an abstract data mapper tasked with interacting with the persistence layer, and an additional abstract class responsible for modeling generic entities.


Read the full article here: Building a Unit of Work in PHP: Creating a Data Mapper and Handling Entities

For more discussion go here: Blog Article Discussion