Class: Phalcon\Paginator\Exception:

Exception: Parameter 'builder' must be an instance of Phalcon\Mvc\Model\Query\Builder

File=/var/www/loserhub/app/modules/frontend/controllers/MediaController.php Line=49

#0 /var/www/loserhub/app/modules/frontend/controllers/MediaController.php(49): Phalcon\Paginator\Adapter\QueryBuilder->__construct(Array)
#1 [internal function]: Loserhub\Frontend\Controllers\MediaController->indexAction()
#2 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(Loserhub\Frontend\Controllers\MediaController), 'indexAction', Array)
#3 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#4 /var/www/loserhub/app/bootstrap_web.php(84): Phalcon\Mvc\Application->handle('/media/index')
#5 /var/www/loserhub/public/index.php(18): require('/var/www/loserh...')
#6 {main}