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

Eager loading

Is there a way to eager load related models automatically in Phalcon? Didn't find any information on this topic in the docs.



98.9k

You can use the query builder to create queries returning data from different models at the same time:

https://docs.phalcon.io/en/latest/reference/phql.html#creating-queries-using-the-query-builder

Nice! Thank you...