PHPackages                             joacub/doctrine-orm-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. joacub/doctrine-orm-module

ActiveLibrary[Database &amp; ORM](/categories/database)

joacub/doctrine-orm-module
==========================

Zend Framework 2 Module that provides Doctrine ORM functionality

0.11.0(9y ago)026MITPHPPHP ^5.5 || ^7.0

Since May 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/joacub/DoctrineORMModule)[ Packagist](https://packagist.org/packages/joacub/doctrine-orm-module)[ Docs](http://www.doctrine-project.org/)[ RSS](/packages/joacub-doctrine-orm-module/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (21)Versions (29)Used By (0)

Doctrine 2 ORM Module for Zend Framework 2
==========================================

[](#doctrine-2-orm-module-for-zend-framework-2)

[![Master branch build status](https://camo.githubusercontent.com/9c769f95d9d5a21de33cc32e415fb57d7fc3935aaaf9a37cfbf3a792f6ab0d58/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f646f637472696e652f446f637472696e654f524d4d6f64756c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/doctrine/DoctrineORMModule) [![Scrutinizer Quality Score](https://camo.githubusercontent.com/496f8c3906f9f6386486b7cad30a657c5776367cbd54bde53d1c2f77b8334b3d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646f637472696e652f446f637472696e654f524d4d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f733d31653261303437666231626230663636393337626362633361363166393630633830383963383335)](https://scrutinizer-ci.com/g/doctrine/DoctrineORMModule/) [![Code Coverage](https://camo.githubusercontent.com/a08e2b00d93375fe0140018704806d69528dbbec74144959eeb5c6d870df9b67/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646f637472696e652f446f637472696e654f524d4d6f64756c652f6261646765732f636f7665726167652e706e673f733d33373736353664656435666661616634363335616366623236373239636161323132666235643736)](https://scrutinizer-ci.com/g/doctrine/DoctrineORMModule/) [![Latest Stable Version](https://camo.githubusercontent.com/411898b10b24372b225eb27cf602810bb3c62080db256a98ba867d87a4e17467/68747470733a2f2f706f7365722e707567782e6f72672f646f637472696e652f646f637472696e652d6f726d2d6d6f64756c652f762f737461626c652e706e67)](https://packagist.org/packages/doctrine/doctrine-orm-module) [![Total Downloads](https://camo.githubusercontent.com/3d97f372f59ae49f74d3c8739f7cf279c1ac82a535a1017c877ea5688e72b526/68747470733a2f2f706f7365722e707567782e6f72672f646f637472696e652f646f637472696e652d6f726d2d6d6f64756c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/doctrine/doctrine-orm-module)

DoctrineORMModule integrates Doctrine 2 ORM with Zend Framework 2 quickly and easily.

- Doctrine 2 ORM support
- Multiple ORM entity managers
- Multiple DBAL connections
- Reuse existing PDO connections in DBAL connection

Installation
------------

[](#installation)

Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
php composer.phar require doctrine/doctrine-orm-module
# (When asked for a version, type `0.*`)
```

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
-----------------

[](#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:

```
