Installation

Then add DoctrineModule and DoctrineORMModule to your config/application.config.php and create directory
data/DoctrineORMModule/Proxy and make sure your application has write access to it.

Installation without composer is not officially supported and requires you to manually install all dependencies
that are listed in composer.json

Entities settings

To register your entities with the ORM, add following metadata driver configurations to your module (merged)
configuration for each of your entities namespaces:

<?phpreturnarray('doctrine'=>array('driver'=>array(// defines an annotation driver with two paths, and names it `my_annotation_driver`'my_annotation_driver'=>array('class'=>'Doctrine\ORM\Mapping\Driver\AnnotationDriver','cache'=>'array','paths'=>array('path/to/my/entities','another/path' ), ),// default metadata driver, aggregates all other drivers into a single one.// Override `orm_default` only if you know what you're doing'orm_default'=>array('drivers'=>array(// register `my_annotation_driver` for any entity under namespace `My\Namespace`'My\Namespace'=>'my_annotation_driver' ) ) ) ));

Connection settings

Connection parameters can be defined in the application configuration: