open-orchestra / open-orchestra-model-bundle
A MongoDB implemantation of the Open Orchestra Model Interface
v2.0.1
2017-06-07 13:29 UTC
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
- dev-master
- v2.0.1
- v2.0.0
- v2.0.0-RC6
- v2.0.0-RC5
- v2.0.0-RC4
- v2.0.0-RC3
- v2.0.0-RC2
- v2.0.0-RC1
- 1.2.x-dev
- v1.2.0
- v1.2.0-beta
- 1.1.x-dev
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.1.0-RC
- v1.1.0-beta
- v1.1.0-alpha4
- v1.1.0-alpha3
- v1.1.0-alpha2
- v1.1.0-alpha1
- 1.0.x-dev
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v1.0.0-RC2
- v1.0.0-RC1
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- 0.3.0
- 0.2.12
- v0.2.11
- v0.2.10
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-test-7.2
- dev-upElastica
- dev-addExternalLink
- dev-fixFirstPositionBlock
This package is not auto-updated.
Last update: 2024-10-26 18:06:27 UTC
README
The Open Orchestra model bundle
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()