Browse Source

Merge pull request #6280 from Tietew/master_belongstomany-sort

added sort to prevent from failing PostgreSQL test
Mark Story 11 years ago
parent
commit
2fd49ed20f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/ORM/CompositeKeysTest.php

+ 1 - 0
tests/TestCase/ORM/CompositeKeysTest.php

@@ -229,6 +229,7 @@ class CompositeKeyTest extends TestCase
             'targetTable' => $tags,
             'propertyName' => 'tags',
             'through' => 'SiteArticlesTags',
+            'sort' => ['SiteTags.id' => 'asc'],
             'foreignKey' => ['article_id', 'site_id'],
             'targetForeignKey' => ['tag_id', 'site_id']
         ]);