Вопрос

I might be searching for the wrong keywords as I find it almost impossible that I can't find this in the docs or in any forum anywhere.

from an ORM find_all() query results like

$result = ORM::factory('some_table')->where('id', 'IN', $ids)->find_all()

How can I count the results returned?

I've tried

$results->count()

count($results)

But to no avail am I getting the correct results, always a 1 in the later case since an object is returned.

Or if the count isn't possible then at least something that tells me if any results were found?

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top