Commit 4822f847 authored by Taylor Otwell's avatar Taylor Otwell

pass delete method through eloquent query.

parent aca2a2ae
...@@ -34,7 +34,7 @@ class Query { ...@@ -34,7 +34,7 @@ class Query {
*/ */
public $passthru = array( public $passthru = array(
'lists', 'only', 'insert', 'insert_get_id', 'update', 'increment', 'lists', 'only', 'insert', 'insert_get_id', 'update', 'increment',
'decrement', 'count', 'min', 'max', 'avg', 'sum', 'delete', 'decrement', 'count', 'min', 'max', 'avg', 'sum',
); );
/** /**
...@@ -267,8 +267,8 @@ class Query { ...@@ -267,8 +267,8 @@ class Query {
$result = call_user_func_array(array($this->table, $method), $parameters); $result = call_user_func_array(array($this->table, $method), $parameters);
// Some methods may get their results straight from the fluent query // Some methods may get their results straight from the fluent query
// builder, such as the aggregate methods. If the called method is // builder such as the aggregate methods. If the called method is
// one of these, we will return the result straight away. // one of these, we will just return the result straight away.
if (in_array($method, $this->passthru)) if (in_array($method, $this->passthru))
{ {
return $result; return $result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment