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

Multiple Tables per Model to use PHQL

Hi,

In my DB I have > 60 Tables (it is a product). Our development environment have MySQL and LIVE we are using Oracle as a DB server. So, we are using PHQL so we don't have to bother about db server. However If I want to use PHQL then I have create a model for each and every table. Is there any better to work on larger database products? Is there any guidelines in Phalcon on how to use for bigger products?

Advance thanks for your response :).



85.5k

i create /app/common/models dir where i put all those annoying indeed models.

Its annoying, but at least it's done 1 time :D