hpaul / mongor

Mongo ORM support for Laravel 3 bundle
23 stars 11 forks source link

Mongor\Model silently ignores missing method calls #1

Closed sparksp closed 12 years ago

sparksp commented 12 years ago

I think I can see why you're using __call to pass through to _$method, I'm assuming so you can have static versions of all the methods too? However you don't provide any error/feedback if you attempt to __call an unknown method.

$model->foo(); // works, but does nothing

This could make debugging hard, if you misspell things, like:

$model->svae(...);