Closed borodiliz closed 5 years ago
1.6.4 fixed wrong syntax for the $replaceRoot
stage. Please try changing this part:
$builder
// ...
->replaceRoot()
->field('newRoot')
->expression('$algoRegister')
to this:
$builder
// ...
->replaceRoot('$algoRegister')
Solved! Thanks for your quick reply @alcaeus !
After upgrading to
1.6.4
from1.6.3
I'm getting the following exception:ErrorException: Notice: Undefined index: _id
.Basically, I'm first filtering and then grouping objects by field
projectId
and taking the last one by creation date. Downgrading to1.6.3
solves the problem.Thanks in advance for your time!
Full Stack Trace: