sb8244/ZF2DoctrineODMBlogPost1 — pull request #1 by antoniodimariano (2014-04-29 16:51:08+00:00)
Title: Dev

I think it's better to avoid calling EntryMapper from controller every time I need to read or save something.
So I decided to use the Factory Pattern and the Service Locator to make it a little more faster and work with a single Service variable instead of calling the Service Manager every time I need some DB job.

I moved all the needed stuff about DocumentManager from EntryController to an EntryMapperFactory.
Moreover I created an EntryService and an EntryServiceFactory in order to deal with EntryMapper from anywhere in my Controller keeping the "DB" area separate and "abstract" from the "Controller".