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