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

In the Model layer set to return to other data table name

Like my model controller is family but I need to manipulate data table is user I need how to set up in the controller?Also, if set table prefix?



6.6k

Maybe you can overwrite the getSource() method of your model?

Look here: https://docs.phalcon.io/en/latest/reference/models.html#creating-models