News Feed
Sections




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

Michael Kimsal's Blog:
Zend Framework and Doctrine integration - autoloading of doctrine models
March 04, 2010 @ 08:30:11

Michael Kimsal has a new post today looking at using Doctrine models in a Zend Framework application and how to get them to autoload when you need them with the help of Zend's Zend_Loader_Autoloader.

I would have expected there to be some explicit reference to how to set this up, but the best I can find are general examples where the Doctrine models directories are appended to the include_path in a ZF index file. Shouldn't there be a way to explicitly have the Doctrine subsystem react to requests for models as well?

He works through the process he followed, including the possibilities of extending the Doctrine Core and accessing the $_modelsDirectory property, but didn't have much luck because of how Doctrine forces the autoloading. He asks for help and gets some good suggestions in the comments on where to look fro documentation and a possibility of skipping the Doctrine loader all together.

0 comments voice your opinion now!
zendframework doctrine orm autoload


blog comments powered by Disqus

Similar Posts

DZone.com: Q&A with Jason Gilmore: The Zend Framework

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 3: Composite View Pattern

Stefan Mischook's Blog: Setting up an MVC structure with the Zend Framework - part 1

Cal Evans' Blog: I called Zend_Json::encode(), so WTH are all my properties?

IBM developerWorks: Hook into Wikipedia information using PHP and the MediaWiki API


Community Events

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


framework example list community project application api yii2 php7 podcast part2 introduction interview series programming opinion laravel language composer symfony

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