Browse Source

Fix group by expression to work in strict mode.

Mark Story 10 years ago
parent
commit
e1e6da6f2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/ORM/QueryRegressionTest.php

+ 1 - 1
tests/TestCase/ORM/QueryRegressionTest.php

@@ -593,7 +593,7 @@ class QueryRegressionTest extends TestCase
             ->find()
             ->select(['title', 'id'])
             ->where("title LIKE :val")
-            ->group('id')
+            ->group(['id', 'title'])
             ->bind(':val', '%Second%');
         $count = $query->count();
         $this->assertEquals(1, $count);