mikelbring / Mongor

Laravel MongoDB Package
22 stars 2 forks source link

Error when using method find() #3

Open ronnyandre opened 11 years ago

ronnyandre commented 11 years ago

When trying out your example, I get an error when trying to loop with the $user->find() method.

Unhandled Exception

Message:

Method [find] is not defined.
Location:

bundles/mongor/model.php on line 458
Stack Trace:

#0 application/routes.php(39): Mongor\Model->__call('find', Array)
#1 application/routes.php(39): Dbtable->find()
#2 [internal function]: {closure}()
#3 laravel/routing/route.php(163): call_user_func_array(Object(Closure), Array)
#4 laravel/routing/route.php(124): Laravel\Routing\Route->response()
#5 laravel/laravel.php(167): Laravel\Routing\Route->call()
#6 public/index.php(34): require('/..')
#7 {main}