I’m new to CakePHP and I’ve tried searching but I can’t find an answer to this question.
To put it simply, I want the query to be something like this:
SELECT id from posts WHERE id IN (15,18,20);
But I don’t know what to put in the find() call.
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.
From the model it would be something like:
in the conditions array, you can pass an array of values to be used in the ‘IN’ clause