Skip to content
Permalink
Browse files

Fix typo and failing test.

  • Loading branch information...
markstory committed Aug 24, 2014
1 parent 9bb8f68 commit 9fffa4799fa1772301e2f4a0ba7b66b031b5c505
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Collection/CollectionTrait.php
  2. +1 −1 tests/TestCase/ORM/QueryTest.php
@@ -656,7 +656,7 @@ public function append($items) {
* [
* 1 => 'foo',
* 2 => 'bar',
* 3 => 'baz,
* 3 => 'baz',
* ];
*
* $combined = (new Collection($items))->combine('id', 'name', 'parent');
@@ -2060,7 +2060,7 @@ public function testAutoFieldsWithContainQueryBuilder() {
->autoFields(true)
->hydrate(false)
->contain(['Authors' => function($q) {
return $q->select(['compute' => '2 + 20'])
return $q->select(['compute' => '(SELECT 2 + 20)'])
->autoFields(true);
}])
->first();

0 comments on commit 9fffa47

Please sign in to comment.
You can’t perform that action at this time.