Browse Source

pass delete method through eloquent query.

Taylor Otwell 12 years ago
parent
commit
4822f847c2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      laravel/database/eloquent/query.php

+ 3 - 3
laravel/database/eloquent/query.php

@@ -34,7 +34,7 @@ class Query {
 	 */
 	public $passthru = array(
 		'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 {
 		$result = call_user_func_array(array($this->table, $method), $parameters);
 
 		// Some methods may get their results straight from the fluent query
-		// builder, such as the aggregate methods. If the called method is
-		// one of these, we will return the result straight away.
+		// builder such as the aggregate methods. If the called method is
+		// one of these, we will just return the result straight away.
 		if (in_array($method, $this->passthru))
 		{
 			return $result;