open-orchestra/open-orchestra-model-bundle
最新稳定版本:v2.0.1
Composer 安装命令:
composer require open-orchestra/open-orchestra-model-bundle
包简介
A MongoDB implemantation of the Open Orchestra Model Interface
README 文档
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()
统计信息
- 总下载量: 26.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 1
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-04-02