Closed hairmare closed 9 years ago
still needs retest from my POV
Tested with http://graviton-develop.nova.scapp.io/core/app?q=lt(order,100)&sort(%2Border) and http://graviton-develop.nova.scapp.io/core/app?q=lt(order,100)&sort(-order)... Still broken, probably an issue with how the AST is being applied to the AST.
This problem probably has to do with the Doctrine\ODM\MongoDB\Query\Expr
and maybe even with what is being done to the query builder before and/or after it is being passed into the visitor...
URL http://graviton-develop.nova.scapp.io/core/app?q=lt(order,100)&sort(%2Border) is invalid because "&" (ampersand) is not part of RQL query. It should be http://graviton-develop.nova.scapp.io/core/app?q=lt(order,100)%26sort(%2Border)
so basically this was pebkac :) Thanks @mrix
This is from GRV-1497 and pertains to
2.0.0-alpha1
.Sorting seems to not work in combination with
lt()
. The following example is how this was reproduced.2.0.0-alpha7
MongoDbVisitor