Heya,

your config for the ORM has nothing to do with the ODM. We implemented
integration with the toolbar, but for ZF2, not ZF1. If you're interested in
checking how this was implemented, see
https://github.com/doctrine/DoctrineMongoODMModule

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 24 August 2012 12:24, Michael Borchers <[email protected]>wrote:

> How do I add a document manager logging to ZFDebug?
>
>
>
> Here is the config for the entityManager:
>
>
>
>                     $em = $this->bootstrap('doctrine')->getResource(
> 'doctrine')->getEntityManager();
>
>
> $em->getConnection()->getConfiguration()->setSQLLogger(*new
> *\Doctrine\DBAL\Logging\DebugStack());
>
>
>
>                     $options = *array*(
>
>                                   'plugins' => *array*('Variables',
>
>
> 'ZFDebug_Controller_Plugin_Debug_Plugin_Doctrine2'
> => *array*(
>
>
> 'entityManagers'
> => *array*($em)
>
>                                                ),
>
>                                                'File' =>
> *array*('base_path'
> => '/path/to/project'),
>
>                                                'Memory',
>
>                                                'Time',
>
>                                                'Registry',
>
>                                                'Exception')
>
>                     );
>

Reply via email to