Browse Source

Merge pull request #6460 from StewEucen/bugfix_unused_param_in_query_update_method

Bugfix about unused param in Query::update()
José Lorenzo Rodríguez 11 years ago
parent
commit
12caa7757e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ORM/Query.php

+ 1 - 1
src/ORM/Query.php

@@ -749,7 +749,7 @@ class Query extends DatabaseQuery implements JsonSerializable
      */
     public function update($table = null)
     {
-        $table = $this->repository()->table();
+        $table = $table ?: $this->repository()->table();
         return parent::update($table);
     }