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

How to use query builder without models?

One of the great things with phalcon is that it is loosely coupled and it is possible to use every component/service separately.

I want to use query builder in my app but i had to define models for every table that i need in queries, but i dont want to define models because of some reasons. Is there any way with phalcon to accomplish this?



17.5k

Gotcha... I'm pretty sure it's not possible to use PHQL outside of models.