phenam Posted November 10, 2010 Share Posted November 10, 2010 Hi all, another question I was hoping you vets could give me some tips on. I have an object which has 3 different sources (SQL, cURL, XML). I usually use a datamapper to retrieve data from the SQL DB, so it was simple. With 3 sources, should I pack them all into the 1 datamapper, or should there be 3 datamappers with some sort of layer over them, so that the controller just needs to make one call to get an array of objects with data from all 3 sources? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/218261-datamapper-with-multiple-data-sources/ Share on other sites More sharing options...
littledave Posted September 29, 2011 Share Posted September 29, 2011 I would be interested if you ever found/got an answer to this question. If you did, how do you deal with sorting the data? Regards Dave Quote Link to comment https://forums.phpfreaks.com/topic/218261-datamapper-with-multiple-data-sources/#findComment-1274112 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.