I’ve been looking for an explanation on how to integrate Doctrine 2 and Zend Framework 1.12 (or 1.11, or another –I don’t really know whether it matters or not but what I’m using is 1.12). I could find several blog posts and even solved questions right here in Stack Overflow but after read them one and all, I couldn’t get to get what I was after: do it in a modular application. So, I’d be very grateful if somebody could give me the keys to achieve this.
Thank you very much!
EDIT:
Thank you guys for your replies but the recent release of ZF2 made me to decide to leave ZF1 in order to take advantage of all new improvements and features. As @KTastrophy said, integrating ZF and Doctrine is quite much easier now (I’d even dare to say that everything is easier and more consistent with ZF2). Thank you one more time!
I use Bisna
You should apply this patch https://github.com/guilhermeblanco/ZendFramework1-Doctrine2/pull/45
And that works well for me.
In the controller I have this function for retrieve the Entity Manager