Closed thommycgn closed 4 years ago
Looks like your class isn't mapped on the ODM
Can we close this one? Or should we patch something?
Issue is on the user side.
Author was using ORM OrderFilter (it happens if you copy line by line from documentation).
Solution is very simple.
Author should use this instead:
use ApiPlatform\Core\Bridge\Doctrine\MongoDbOdm\Filter\OrderFilter;
I think you can close this one.
If I want to use @ApiFilter(...) (any Search or Order) with MongoDB it alwas results in "Call to a member function getClassMetadata() on null".
Im using:
"doctrine/mongodb-odm": 2.0.0-RC1, "doctrine/mongodb-odm-bundle": 4.0.0-RC1,
It's working with MySql...