Closed wuchen90 closed 3 years ago
This surprises me, because the hydrator is the same for the class regardless of the way we fetched the data (find vs. aggregate). I'll take a look after the long weekend. If you can provide a failing test case (you can take inspiration from this one, just use the agg builder instead of find
), that would make my work of figuring out what's going on a lot easier.
@alcaeus
Actually the bug still occurs with find
too: https://github.com/doctrine/mongodb-odm/pull/2316
Bug Report
Summary
This bug is the same as https://github.com/doctrine/mongodb-odm/issues/2301 but with AggregationBuilder.
How to reproduce
Expected behavior