allow eloquent models to use increment and decrement.

This commit is contained in:
Taylor Otwell 2011-10-12 21:35:23 -05:00
parent 9bf978abcd
commit 9f7ed576c5
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ public function __call($method, $parameters)
// All of the aggregate and persistance functions can be passed directly to the query
// instance. For these functions, we can simply return the response of the query.
if (in_array($method, array('insert', 'update', 'abs', 'count', 'sum', 'min', 'max', 'avg')))
if (in_array($method, array('insert', 'update', 'increment', 'decrement', 'abs', 'count', 'sum', 'min', 'max', 'avg')))
{
return call_user_func_array(array($this->query, $method), $parameters);
}