open-orchestra / open-orchestra-model-bundle
Open Orchestra模型接口的MongoDB实现
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-09-14 17:32:07 UTC
README
Open Orchestra模型包
使用方法
安装包后,您应该在AppKernel::registerBundles()中也激活聚合查询包
new OpenOrchestra\ModelBundle\OpenOrchestraModelBundle(),
new Solution\MongoAggregationBundle\SolutionMongoAggregationBundle(),
这将允许您通过以下方法在存储库中创建聚合查询
AbstractRepository::createAggregationQuery()
使用聚合,MongoDB不返回原始文档,但通过使用$$ROOT
参数,您可以向响应中添加文档的所有字段。
要使用数据库结果填充所有文档,请使用以下方法
AbstractRepository::hydrateAggregateQuery()