I'm trying to teach myself ZF2 in conjunction with Doctrine 2. I've completed both the Album tutorial and Blog Tutorial on Zend's website successfully. Now I'm trying to go back and convert the Blog Tutorial to use Doctrine 2. I believe I've successfully setup my config for doctrine and used DI to get it inside of my controller (WriteController.php) since I am able to dump the contents of it within my action. I don't get any errors so long as I don't do anything with it.
My question is what roll does Doctrine take in the Controller -> Service -> Mapper -> Backend
layered structure which was taught in the Blog tutorial? (Reference To what I mean)
Also, I'm assuming Backend
is referring to my Models. Is this correct?
Would I just replace any references to /Blog/Model/Post
with /Blog/Entity/Blog
?