ardemiranda / doctrine-couch-odm-module
Zend Framework 2 Module that provides Doctrine CouchDB ODM functionality
Installs: 160
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 76
Open Issues: 1
pkg:composer/ardemiranda/doctrine-couch-odm-module
Requires
- php: >=5.3.3
- doctrine/couchdb-odm: dev-master
- doctrine/doctrine-module: 0.*
- zendframework/zendframework: 2.*
This package is not auto-updated.
Last update: 2016-11-17 06:54:30 UTC
README
The DoctrineCouchODMModule integrates Doctrine 2 CouchDB ODM with Zend Framework 2 quickly and easily. The following features are intended to work out of the box:
- CouchDB support
Requirements
Zend Framework 2 Application Skeleton (or compatible architecture)
Installation
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
Installation steps
- cd my/project/directory
- create a - composer.jsonfile with following contents:- { "minimum-stability": "alpha", "require": { "ardemiranda/doctrine-couch-odm-module": "dev-master" } }
- install composer via curl -s http://getcomposer.org/installer | php(on windows, download http://getcomposer.org/installer and execute it with PHP)
- run php composer.phar install
- open - my/project/directory/configs/application.config.phpand add following keys to your- modules(in this order)- 'DoctrineModule', 'DoctrineCouchODMModule', 
- copy - vendor/doctrine/doctrine-couch-odm-module/config/module.doctrine-couch-odm.local.php.distinto your application's- config/autoloaddirectory, rename it to- module.doctrine-couch-odm.local.phpand make the appropriate changes. With this config file you can configure your couch connection, add extra annotations to register, add subscribers to the event manager, add filters to the filter collection, and drivers to the driver chain.
- create directory - my/project/directory/data/DoctrineMongoODMModule/Proxy
Usage
Command Line
Access the Doctrine command line as following
./vendor/bin/doctrine-module
Service Locator
Access the document manager using the following service manager alias:
<?php $dm = $this->getServiceLocator()->get('doctrine.documentmanager.odm_default');