Browse Source

compatible with quoteIdentifiers=true

IWASE 11 years ago
parent
commit
b5476dd125
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/ORM/CompositeKeysTest.php

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

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