News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DZone.com:
The era of Object-Document Mapping
July 08, 2011 @ 11:45:46

On the PHP on Windows section of DZone.com today Giorgio Sironi has posted about a different sort of object mapping than is usually thought of with databases - object-document mapping.

The Data Mapper pattern is a mechanism for persistence where the application model and the data source have no dependencies between each other. [...] But everytime we talk about the Data Mapper pattern, we assume there is a relational database on the other side of the persistence boundary. We always save objects; we always map them to MySQL or Postgres tables; but it's not mandatory.

He talks about two projects, MongoDb_ODM and CouchDb_ODM, that the Doctrine project is working on to help make working with document-driven databases as simple as the usual ORMs. He includes a brief code snippet showing how the feature will work (hint: a namespace of Document instead of Entity). He lists some of the features - including the usual ORM capabilities, support for collections, cascade of persistence - and where you can get the latest code for it (from github and PEAR

0 comments voice your opinion now!
object document mapping doctrine mongodb couchdb


blog comments powered by Disqus

Similar Posts

ProDevTips.com: Extending PHP Doctrine Record - Check Box Groups

Tobias Schlitt's Blog: PHP@FrOSCon - Timetable online!

IBM developerWorks: Five good programming habits in PHP

Gonzalo Ayuso's Blog: Using CouchDb as filesystem with PHP

Maarten Balliauw's Blog: Indexing Word 2007 (docx) files with Zend_Search_Lucene


Community Events











Don't see your event here?
Let us know!


framework application release symfony2 introduction opinion hhvm performance composer component unittest facebook package security overview hack install language podcast database

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework