Browse Source

Fix failing test with postgres & identifier quoting.

Mark Story 10 years ago
parent
commit
356d2a071d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/ORM/Association/BelongsToManyTest.php

+ 1 - 1
tests/TestCase/ORM/Association/BelongsToManyTest.php

@@ -1032,7 +1032,7 @@ class BelongsToManyTest extends TestCase
         $table->belongsToMany('Tags', [
             'foreignKey' => 'article_id',
             'associationForeignKey' => 'tag_id',
-            'conditions' => [new QueryExpression("Tags.name LIKE 'tag%'")],
+            'conditions' => [new QueryExpression("name LIKE 'tag%'")],
             'through' => 'SpecialTags'
         ]);
         $query = $table->find()->matching('Tags', function ($q) {