質問

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