Refactoring eloquent.
This commit is contained in:
parent
718d51e0b4
commit
76cf877d7e
|
|
@ -483,9 +483,9 @@ public function __call($method, $parameters)
|
||||||
return call_user_func_array(array($this, '_'.$method), $parameters);
|
return call_user_func_array(array($this, '_'.$method), $parameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
// All of the aggregate functions can be passed directly to the query instance.
|
// All of the aggregate and persistance functions can be passed directly to the query
|
||||||
// For these functions, we can simply return the response of the query.
|
// instance. For these functions, we can simply return the response of the query.
|
||||||
if (in_array($method, array('count', 'sum', 'min', 'max', 'avg')))
|
if (in_array($method, array('insert', 'update', 'count', 'sum', 'min', 'max', 'avg')))
|
||||||
{
|
{
|
||||||
return call_user_func_array(array($this->query, $method), $parameters);
|
return call_user_func_array(array($this->query, $method), $parameters);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue