PHPCR ODM for Doctrine2
- PHP 7.1
- libxml version >= 2.7.0 (due to a bug in libxml http://bugs.php.net/bug.php?id=36501)
- See also the
requiresection of composer.json
Please refer to doctrine-project.org for the documentation.
Pull requests are welcome. Please include tests to prevent regressions whenever possible.
Thanks to everyone who has contributed already.
Running the tests
This examples shows how to run the tests for jackrabbit. You can run the tests for the other backends. Just replace jackrabbit with the name of the backend you want to run.
Make sure you have installed the dependencies that can't be installed with Composer (e.g. when running
travis_doctrine_dbal.sh, install MySQL). Do not run
composer install, it will not work because phpcr-odm requires virtual packages that change depending on the backend you want to test.
Run this command to download jackrabbit and launch it (requires wget)
Please note that this will also require implementations for virtual packages
that match the backend you want to test, resulting in a change in your
composer.json. Make sure you do not check in this change into version control.
Run the tests:
phpunit -c tests/phpunit_jackrabbit.xml.dist