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

Model discrepancies between Ubuntu and OSX

I have a Phalcon project that I recently moved from a Mac to Ubuntu. I have everything working until it executes PHQL queries, it only returns "Model 'modelname' could not be loaded". It all works on the Mac. Anyone know the reason why this is happening?



43.9k

did you also duplicate database on your ubuntu box ?

I did, I can access models via the model syntax (i.e. User::find()) but anything run from $this-modelsManager->executeQuery() using PHQL retruns that the model could not be loaded.