Following code throws exception “Invalid SQL expression type ‘list'”:
$condition = 'id IN(1,2,4)';
Model::find($condition);
I can’t believe that phalcon does not support this.
What is the correct way to setup this rule?
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.
To setup this rule, we should simply setup ids list as key => value:
Hope this would be helpful for somebody.
UPD: this will NOT work, numbers should be not array, but string:
There was a bug with such construction, but it was fixed in 0.8.0 version.