Jump to content

Datamapper with multiple data sources


phenam

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/218261-datamapper-with-multiple-data-sources/
Share on other sites

  • 10 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.