PHP and your domain model with Doctrine ORM

January 29, 2008

News

For the last 10 years of doing web development with PHP I have been searching for a proper way to build my domain model and represent it with a relational database and a set of PHP classes. This has not existed until recently I came across a young open source PHP project named Doctrine.

I quickly jumped on the wagon and it has been quite an experience so far. Doctrine is an ORM for PHP that sits on top of a powerful DBAL (database abstraction layer). One of its key features is the ability to optionally write database queries in an OO (object oriented) SQL-dialect called DQL inspired by Hibernates HQL. This provides developers with a powerful alternative to SQL that maintains a maximum of flexibility without requiring needless code duplication.

2 Responses to “PHP and your domain model with Doctrine ORM”

  1. bluerod Says:

    Although this article is bit dated people still come here looking for answers, so I decided to help out. I believe that zend framework is more that good enough to implement ORM. It just takes a bit of coding but true ORM is easily done with zend framework. I have written article about this and hope it can point people to right direction and help out. Article is on : http://havl.net/devnotes/2010/10/zendframework-model-orm/

  2. _____anonymous_____ Says:

    Another interesting ORM.. I’ve not tested this out myself (saw it from a post on PHPDeveloper.org), but it sounds promising.
    See it here: <a href="http://junctionphp.com/">Junction PHP</a>