I got a table with 500 records but when run i got a message erro.If i reduce de limit value it works fine, but if try to bring more results per page i got an php error and give me a bad gateway. However on php log i didnt get any memory exhaust.
$customer = \Model\customer::find();
$paginator = new \Phalcon\Paginator\Adapter\Model(array(
"data" => $customer,
"limit" => 10,
"page" => 2
));
$page = $paginator->getPaginate();
any tips? I also tried the querybuilder with same problem.