After adding namespace to Model, modelManager->executeQuery throws errors #15288
-
Hi, I'm not sure how to qualify this as bug or me being dummy. As in the title I've got a standard Phalcon Model class which worked fine until now.
It was working nicely so far but now I've started to merge with another developer who is using additionally namespaces. After adding namespace declaration to this class
... and in references in other places to find that class in a new domain the executeQuery starts to throw strange errors either:
or
The error type depends on the configuration inside the index.php file (bootstrap). So far all I needed to make things to work was this directory declaration:
but my colleague (who didn't use PHQL at all in his models) was using this configuration instead
Any guidance or suggestions would be appreciated as I am out of the options. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We've found the case trowing similar errors https://forum.phalcon.io/discussion/1427/model-phql-query-error-model-could-not-be-loaded in my $phql I refer to Venues properly but maybe this something to consider
If this translates to creating or re-defining a new Venues class one of the errors would make sense. But then how to add namespace to phql?
|
Beta Was this translation helpful? Give feedback.
We've found the case trowing similar errors https://forum.phalcon.io/discussion/1427/model-phql-query-error-model-could-not-be-loaded
in my $phql I refer to Venues properly but maybe this something to consider
If this translates to creating or re-defining a new Venues class one of the errors would make sense. But then how to add namespace to phql?