Skip to content

Commit dde9ad4

Browse files
authored
Merge pull request #714 from leevigraham/patch-8
Update element-queries.md
2 parents 8192002 + 9a053ee commit dde9ad4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/5.x/development/element-queries.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,9 +816,9 @@ Craft also attempts to detect use of field instance handles in `.where()` and `.
816816
])
817817
.andWhere([
818818
'not',
819-
['like', 'primaryProtein, '%shellfish%'],
820-
['like', 'primaryProtein, '%shrimp%'],
821-
['like', 'primaryProtein, '%scallop%'],
819+
['like', 'primaryProtein', '%shellfish%'],
820+
['like', 'primaryProtein', '%shrimp%'],
821+
['like', 'primaryProtein', '%scallop%'],
822822
])
823823
.orderBy('scovilleRating')
824824
.all() %}

0 commit comments

Comments
 (0)