Im my module.config.php file got following excerpt:
return array( 'service_manager' => array( 'aliases' => array( 'Util\Dao\Factory' => 'modelFactory', ), 'factories' => array( 'modelFactory' => function($sm) { $dbAdapter = $sm->get('Doctrine\ORM\EntityManager'); return new \Util\Dao\Factory($dbAdapter); }, ) ), 'doctrine' => array( 'driver' => array( 'application_entities' => array( 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver', 'cache' => 'array', 'paths' => array( __DIR__ . '/../src/Application/Model' ), ), 'orm_default' => array( 'drivers' => array( 'Application\Model' => 'application_entities' ) ), ), ),
How do i put the block "doctrine" in module class?