fuel/orm — Issue #131: Call to a member function count()
Author: osam
Created: 2011-12-28 05:02:38+00:00
State: open

The docs say:
```php
$query = Model_Article::find()->where('category_id', 1)->order_by('date', 'desc');

// We want to know the total number of articles for pagination
$number_of_articles = $query->count();
```
http://docs.fuelphp.com/packages/orm/crud.html

That gives ErrorException [ Error ]: Call to a member function count() on a non-object. However, this does work:

```php
Model_Article::count();
```