I used to have below code for my phalcon3.4 now i strugling to understand how to do the same in the phalcon4 ?
use Phalcon\Paginator\Adapter\Model;
$paginator = new Model(
     [
      "data"  => Robots::find(),
      "limit" => 25,
      "page"  => $currentPage,
    ]
 );
$paginate = $paginator->getPaginate();
???