I use the Zend Framework with modules for my applications, and I'm interested in integrating Doctrine 2 in the same way:
The module contains:
- Controllers
- Models
- view
- Assistants
The problem with Doctrine 2 is that this requires you to have an object directory along with a proxy directory. I want the object catalog to be the catalog of models from my modular structure and based on my research, I did not find a solution.
Currently, with the default module, the metadata implementation is as follows:
$config->setMetadataDriverImpl($config->newDefaultAnnotationDriver(APPLICATION_PATH . '/modules/default/models'));
If I want to add a new module, say "cms", I have no way to manage the models there with Doctrine.
Does anyone have a solution to the problem?
php zend-framework doctrine2
bedeabza
source share