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

Query on model in different namespace problems

Hi,

I have a problem executing query on a model.

I have a module located at base/module/ and inside a controllers, models, etc folders executing a query like (SELECT * FROM App\Module\Model) is working.

But, in another module located at base/subfolder/module2 executing the same query in a model inside this module is not working... I payed attention to the namespaces which in case for the model of the module 2 is : App\Subfolder\Module\Model If y query with Model::find() (with use App\Subfolder\Module\Model) it's working, but with PHQL (SELECT * FROM App\Subfolder\Module\Model) it's not.

Any ideas ?

What you mean it's not ? What error you have ? How your loader looks like ?



1.1k
Accepted
answer

After further check it was just caching problem... Thanks anyway.