I’ve not found here how we can get builded query by Phalcon\Mvc\Model\Criteria in docs:
http://docs.phalconphp.com/en/latest/api/Phalcon_Mvc_Model_Criteria.html
Is it possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Phalcon\Mvc\Model\Criteria builds an array of valid parameters for SomeModel::find, or SomeModel::findFirst, this class does not build a real query.
Furthermore, we have Phalcon\Mvc\Query\Builder this class has the ability to build PHQL queries:
More info: http://docs.phalconphp.com/en/latest/reference/phql.html#creating-queries-using-the-query-builder