简体   繁体   English

mongodb odm映射减少

[英]doctrine mongodb odm map reduce

Is it possible after a Map/Reduce with Doctrine to get a collection of entities ? 在使用Doctrine进行Map / Reduce后,是否可以获取实体集合?

According to the documentation we get an array... 根据文档,我们得到一个数组...

I found another page of the document where it's written: 在文档的另一页上找到了该页

When you specify a map() and reduce() operation the results will not be hydrated and the raw results from the map reduce operation will be returned. 当您指定map()和reduce()操作时,结果将不会被水化,并且将返回来自map reduce操作的原始结果。

So I think the response is no ... 所以我认为回应不是...

I also found that I can use where($javascript) to do what I want. 我还发现我可以使用where($ javascript)做我想要的事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM