News Feed
Sections




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

PHPClasses.org:
PHP Object-Relational Mapping ORM or ROM?
October 10, 2008 @ 12:09:37

On the PHPClasses.org blog today Manuel Lemos has posted a look at ORM - what it is and how you can use it to improve your applications.

Object-Relational Mapping, usually referred as ORM, is a software development approach to treat data stored in relational (SQL) database table records as if they were objects. Basically we can create classes with variables that represent fields of a database table. To insert a table record you need to create an object of the class, assign the variable values, and call a function of the class that takes care of inserting the table record

He illustrates what it is (brief code samples) and some of the approaches that developers have taken to implementing it. He suggests, however, that they should truely be called ROM (Relational Object Mapping) libraries rather than ORM due to the fact that they map an object (the database tables) back in to PHP objects. He finishes with a list of a few ORM resources and libraries including the one that helps power the PHPClasses website, Metastorage.

0 comments voice your opinion now!
phpclasses orm object relational mapping database layer


blog comments powered by Disqus

Similar Posts

Patrick Allaert's Blog: Readable PHP code #2 - Make your API handle more!

SitePoint PHP Blog: Data Fixtures in Symfony2

Community News: Latest PHPClasses.org Releases for 10.25.2006

PHPClasses.org: Lately in PHP, Episode 22 - Will the Git Move Encourage more Non-Core Contribution?

Community News: Latest PHPClasses.org Releases for 09.13.2006


Community Events

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


series application symfony2 release conference php7 introduction community interview opinion framework podcast composer api part2 performance library laravel configure example

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