Skip to content
Permalink
Browse files

Another try at fixing SQL Server

  • Loading branch information...
lorenzo committed May 29, 2016
1 parent f7251c2 commit 12936a488f2d07ccf7945928425af871439ddc26
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/TestCase/ORM/QueryRegressionTest.php
@@ -563,7 +563,8 @@ public function testDeepHasManyEitherStrategy()
$findViaSelect = $featuredTags
->find()
->where(['FeaturedTags.tag_id' => 2])
->contain('Tags.TagsTranslations');
->contain('Tags.TagsTranslations')
->all();
$tags->hasMany('TagsTranslations', [
'foreignKey' => 'id',
@@ -572,7 +573,8 @@ public function testDeepHasManyEitherStrategy()
$findViaSubquery = $featuredTags
->find()
->where(['FeaturedTags.tag_id' => 2])
->contain('Tags.TagsTranslations');
->contain('Tags.TagsTranslations')
->all();
$expected = [2 => 'tag 2 translated into en_us'];

0 comments on commit 12936a4

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