To factory or not to factory? in PHP Coding Help Posted November 4, 2021 · Edited November 4, 2021 by Drongo_III 13 hours ago, requinix said: Need more details. Or try from another angle. What kind of code do you want to write in order to get the data you need? I actually dusted off my copy of Patterns of Enterprise Application Architecture and there was a chapter on DTOs. In that chapter it recommends using a 'DTO Assembler' which is an type of Mapper - i.e. an intermediary to keep the DTO ignorant of the Models that supply it's data. And this seems to solve the very problem I'm trying to solve, I just didn't have a name for it and incorrectly thought 'factory must be what i need'.