Jason Gilmore’s article introduces Doctrine and shows you how to begin mapping your database tables to PHP objects. Read the whole article here: http://www.developer.com/db/article.php/3887336/Doctrine-Object-Relational-Mapping-for-Your-PHP-Development.htm
Doctrine: Object Relational Mapping for Your PHP Development
The PHP community also has a powerful database integration tool at their disposal: a project known as Doctrine. This open source project not only simplifies the task of mapping database tables to PHP’s object-oriented class structure, but also facilitates the management of your data and schemas over the project lifecycle.