if i do integrate Zend Framework 1.10 with Doctrine 2 where do i put my Doctrine Models/Entities and Proxies? i thought of the /application or the /library directories. if i do put in the /library directory tho, will it interfere with ZF autoloading classes from there since the classes there will be using PHP 5.3 namespaces vs PEAR style namespaces.
if i do integrate Zend Framework 1.10 with Doctrine 2 where do i put
Share
I’m working on an application that integrates Doctrine 2 with ZF1.10 also.You don’t need to use the Doctrine auto loader at all.
1) In your application.ini file add the following line (assuming you have Doctrine installed in your library folder (same as the Zend folder):
2) Create a doctrine or entitymanager resource. In your ini file:
3) Next, you will need to bootstrap it. I added a resource class in my resources folder. Make sure you map to the folder in your ini file:
Then your resource class…
The doctrine 2 entity manager is now available to your application. In your controller you can grab it like so:
I am sure this will help somebody 🙂