j4mie / idiorm

A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5.
http://j4mie.github.com/idiormandparis/
2.01k stars 369 forks source link

Num Rows from Result? #367

Closed TilP closed 2 years ago

TilP commented 3 years ago

Hi, new to Idiorm, great library and am relearning PHP.

Wondering how to get the equivalent of ->num_rows from a result? From the documentation, it looks like I need to use the count() method? Thanks

TilP commented 3 years ago

The only solution I can think of is to first check if result is instance of the class involved.