whiteoctober / Pagerfanta

Pagination for PHP.
Other
1.59k stars 2 forks source link

Fixed: Attempted to call an undefined method named "count" of class " Doctrine\ODM\MongoDB\Query\Query". in DoctrineODMMongoDBAdapter #279

Closed michaelbagrov closed 5 years ago

michaelbagrov commented 5 years ago

Problem: When using DoctrineODMMongoDBAdapter and calling any method which uses Pagerfanta::getNbResults receiving error: ttempted to call an undefined method named "count" of class " Doctrine\ODM\MongoDB\Query\Query".

michaelbagrov commented 5 years ago

Any update on this?

stof commented 5 years ago

/cc @jmikola

sampart commented 5 years ago

Great to have your input, @michaelbagrov, thanks for this. And thank you for your technical review, @jmikola.

I've merged this now as you'll see and included it in release https://github.com/whiteoctober/Pagerfanta/releases/tag/v2.1.3.