guilhermeblanco / ZF1-Doctrine2-ServiceLayer

Application Service Layer at the top of Zend Framework 1 and Doctrine 2
44 stars 4 forks source link

ODM support missing #11

Open dorongutman opened 12 years ago

dorongutman commented 12 years ago

Getting the document manager from a service layer class is $this->getServiceLocator()->getDoctrineContainer()->getDocumentManager(); Why not put it in the Bisna\Service\Service class ?

iMiodrag commented 7 years ago

How do I use this in the controller? I have tried use Bisna\Service\ServiceLocator; $service = new ServiceLocator(); var_dump($service->getService('test')); but no luck