News Feed
Sections




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

Jason Grimes' Blog:
Using Doctrine 2 in Zend Framework 2
January 30, 2012 @ 10:02:36

Jason Grimes has posted a new tutorial to his blog about integrating Zend Framework 2 with Doctrine, the powerful (and popular) ORM tool for PHP. In his example, he shows how to use them to store the album information from Rob's tutorial.

Zend Framework 2 is getting close to release, and among the changes are new ways to handle dependency injection, and new ways to work with third-party code as modules. Rob "Akrabat" Allen has updated his iconic Getting Started with Zend Framework tutorial for ZF2, and it's a great place to start. After working through that tutorial, the next thing I wanted to do was figure out how to get the Doctrine 2 ORM up and running. This article shows how to set up and use Doctrine 2 in Zend Framework 2, by extending Rob's Getting Started tutorial to use Doctrine instead of Zend_Db.

Using Rob's example as a starting point, he shows how to install the Doctrine modules, update the "Album" model and controller to use Doctrine instead of Zend_Db and create the entity for the Albums.

0 comments voice your opinion now!
doctrine2 zendframework2 tutorial roballen gettingstarted


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 6)

DevShed: Inserting Comments and Accessing Nodes with the DOM XML Extension in PHP 5

Lorna Mitchell's Blog: PHP OAuth Provider: Initial Requirements

PHPMaster.com: Under the Hood of Yii’s Component Architecture, Part 2

Jakub Zalas' Blog: Managing object creation in PHP with the Symfony2 Dependency Injection component


Community Events





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


language library community release series list tool voicesoftheelephpant laravel conference composer interview framework opinion artisanfiles introduction security version podcast symfony

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