This is not an issue of utomst importance but more in the category of an annoyance, and we don't like those right?
How do I prevent having to type the full path to the folder where my models are located in JOIN and WHERE clauses when using self-written PHQL?
I want go from
SELECT COUNT(*) AS count FROM \Apps\Source\Models\User AS u JOIN \Apps\Source\Models\UserCompany AS uc ON uc.userId = u.id WHERE u.companyId = :cid:
SELECT COUNT(*) AS count FROM User AS u JOIN UserCompany AS uc ON uc.userId = u.id WHERE u.companyId = :cid:
Any ideas? All functions in the Phalcon\Mvc\Model\Manager seem to irrelevant when writing custom PHQL, which I like to do when writing longer queries.
Thx in advance.