PHPackages                             martinkronstad/couchdb-odm-bundle - 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. martinkronstad/couchdb-odm-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

martinkronstad/couchdb-odm-bundle
=================================

Symfony3 Doctrine CouchDB Bundle

2.2(10y ago)0472↓100%LGPLPHPPHP &gt;=5.3.2

Since Feb 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/martinkronstad/DoctrineCouchDBBundle)[ Packagist](https://packagist.org/packages/martinkronstad/couchdb-odm-bundle)[ Docs](http://www.doctrine-project.org)[ RSS](/packages/martinkronstad-couchdb-odm-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

Doctrine CouchDB Bundle
=======================

[](#doctrine-couchdb-bundle)

This bundle integrates Doctrine CouchDB ODM and Clients into Symfony2.

STABILITY: Alpha

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

[](#installation)

- `composer require doctrine/couchdb-odm-bundle`
- Add `Doctrine\Bundle\CouchDBBundle\DoctrineCouchDBBundle` to your Kernel#registerBundles() method
- If you do not use composer, do not forget to add autoloader for the Doctrine\\CouchDB, Doctrine\\ODM\\CouchDB and Doctrine\\Bundle namespaces

To use the annotations, register them in your app/autoload.php file:

```
use Doctrine\Common\Annotations\AnnotationRegistry;
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

```

Documentation
-------------

[](#documentation)

See the [Doctrine CouchDB ODM](http://docs.doctrine-project.org/projects/doctrine-couchdb/en/latest/index.html) documentation for more information.

Configuration
-------------

[](#configuration)

The configuration is similar to Doctrine ORM and MongoDB configuration for Symfony2 as its based on the AbstractDoctrineBundle aswell:

```
doctrine_couch_db:
  client:
    dbname: symfony
  odm:
    auto_mapping: true

```

To dump the configuration reference of this bundle

```
php app/console config:dump-reference doctrine_couch_db

```

Annotations
-----------

[](#annotations)

An example of how to use annotations with CouchDB and Symfony:

```
