Answer the question
In order to leave comments, you need to log in
Why does the R::find method in ORM ReadBeanPHP always return one record?
Given variable: $cities_of_region = R::find ('city', '`id_region` = ?', array(;id_region));
Always returns only one record, and always the last one (ie if it was supposed to return 100 records, it returns the last one in alphabetical order)
Perhaps someone knows what to do with this? I can't find the answer anywhere.
Answer the question
In order to leave comments, you need to log in
You should probably write it correctly, for example:
$id_region = 123;
$cities_of_region = R::find ('city', 'id_region = ?', [$id_region]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question