News Feed
Sections




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

DZone.com:
From Doctrine 1 to Doctrine 2
November 04, 2010 @ 12:48:21

On DZone.com today there's a new article from Giorgio Sironi about making the switch from Doctrine 1 to Doctrine 2 and some of what might be involved.

Doctrine 2 is an implementation of the Data Mapper pattern, and does not force your model classes to extend an Active Record, nor to contain details about the relational model like foreign keys. [...] Note that you will have to run your application of PHP 5.3 for Doctrine 2 to work, mainly because of the use of namespaces in it.

He talks about some of the other differences including maintaining PHP classes and the metadata in them rather than just a YAML schema to map to your database. There's also a difference in how to interact directly with the Doctrine engine. Direct access has been replaced with a dependency injection approach.

0 comments voice your opinion now!
doctrine orm database migrate version


blog comments powered by Disqus

Similar Posts

Juozas Kaziukenas' Blog: Starting with Zend_Search_Lucene

Alexander Netkachev's Blog: Zend Framework News

Edin Kadribasic's Blog: PHP 4.4.6-win32 with MySQL 5.0.37

Evan Sims' Blog: WordPress 2.3 Impressions

Zend Developer Zone: Case Study w/ Zend Core for IBM with DB2 9 - 10k Active DB Connections


Community Events





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


refactor testing interview configure install language developer introduction list experience community laravel series unittest podcast framework threedevsandamaybe release opinion code

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