We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Range limit with model

I read the documentation for model to apply limit i.e.

 $data = City::find(["limit"=>$start]);

here $start is a variable. I have to apply range like 0 to 100 as sql query select * from city limit 0,100. How do I do that?


Add offset parameter. More info here: https://docs.phalcon.io/de/3.2/db-models