Skip to content

Commit

Permalink
Fix error with postgres.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 11, 2016
1 parent 3e09312 commit b3cd6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/Association/BelongsToManyTest.php
Expand Up @@ -1032,7 +1032,7 @@ public function testBelongsToManyAssociationWithExpressionConditions()
$table->belongsToMany('Tags', [
'foreignKey' => 'article_id',
'associationForeignKey' => 'tag_id',
'conditions' => [new QueryExpression('Tags.name LIKE "tag%"')],
'conditions' => [new QueryExpression("Tags.name LIKE 'tag%'")],
'through' => 'SpecialTags'
]);
$query = $table->find()->matching('Tags', function ($q) {
Expand Down

0 comments on commit b3cd6ac

Please sign in to comment.