Zend Framework 2 to Doctrine PHPCR ODM integration
This Module provides functionality to connect Zend Framework 2 and Doctrine PHPCR-ODM. It provides configuration and dependencies for both Jackrabbit and DBAL JCR backends, and allows usage with Midgard2 too.
The module runs on any typical Zend Framework 2 Skeleton application setup.
Following steps are necessary to get this project working (considering a zf2-skeleton or very similar application)
"ocramius/zf-phpcr-odm": "dev-master"to your
"minimum-stability": "dev"is also required)
ZfPhpcrOdmto the enabled modules list
- create directory
my/project/directory/data/ZfPhpcrOdm/Proxyand make sure your application has write access to it. This directory can be changed using the module options.
This module allows you to simply ask the default application's
ServiceLocator for an instance of
<?php $documentManager = $serviceLocator->get('Doctrine\ODM\PHPCR\DocumentManager');
Please refer to https://github.com/Ocramius/ZfPhpcrOdmSample to see a working example of this module being used.