We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Find query error please help

Hi,

I writer query to get all data from database using this $listingcategories = ListingCategories::find($parameters);

its getting all records correctly but when its fetching each records everytime its runing the application fully how to stop this?

$listingcategories = ListingCategories::find($parameters); returns a cursor that retrieves one record at time, it does not mean it makes several queries