Skip to content

Commit

Permalink
Fix typo and failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 24, 2014
1 parent 9bb8f68 commit 9fffa47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Collection/CollectionTrait.php
Expand Up @@ -656,7 +656,7 @@ public function append($items) {
* [
* 1 => 'foo',
* 2 => 'bar',
* 3 => 'baz,
* 3 => 'baz',
* ];
*
* $combined = (new Collection($items))->combine('id', 'name', 'parent');
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/QueryTest.php
Expand Up @@ -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();
Expand Down

0 comments on commit 9fffa47

Please sign in to comment.