open-orchestra / open-orchestra-model-bundle
A MongoDB implemantation of the Open Orchestra Model Interface
Package info
github.com/open-orchestra/open-orchestra-model-bundle
pkg:composer/open-orchestra/open-orchestra-model-bundle
Requires
- php: ~5.6.0
- doctrine/data-fixtures: ~1.2.0
- open-orchestra/open-orchestra-migration-bundle: v2.0.1
- open-orchestra/open-orchestra-model-interface: v2.0.1
- open-orchestra/open-orchestra-mongo-libs: v2.0.1
- stof/doctrine-extensions-bundle: ~1.2.1
Requires (Dev)
- codeclimate/php-test-reporter: ~0.3.2
- open-orchestra/open-orchestra-base-bundle: v2.0.1
- open-orchestra/open-orchestra-libs: v2.0.1
- phake/phake: ~2.3.0
- phpunit/phpunit: ~5.5.0
Provides
This package is not auto-updated.
Last update: 2026-06-07 02:16:38 UTC
README
The Open Orchestra model bundle
| Service | Badge |
|---|---|
| Travis | |
| Sensio insight | |
| Code Climate (Quality) | |
| Code Climate (Code coverage) | |
| Latest Stable Version | |
| Total Downloads |
Usage
Once you have installed the bundle, you should activate the aggregator query bundle also in the AppKernel::registerBundles() :
new OpenOrchestra\ModelBundle\OpenOrchestraModelBundle(),
new Solution\MongoAggregationBundle\SolutionMongoAggregationBundle(),
This will allow you to create aggregation query in your repositories by using the method :
AbstractRepository::createAggregationQuery()
With the aggregation, mongo does not return the original document, but by using the $$ROOT parameter, you can add all
the fields of the document to the response.
To hydrate all the documents using the database result, use the method :
AbstractRepository::hydrateAggregateQuery()