You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#99 issue is very similar, but was closed with a fix, which actually fixes only #109 , as contains refers to comparison within a string, not a list. It is similar to sql LIKE operator.
So if we have Field1 = APK1234, Field2 = 1234 & Field3 = 5678 $client->where('Field', '!contains', 'APK') or $client->where('Field', 'not like', 'APK') should return only Field2 & Field3
But it does not work, as I am getting 400 Bad Request response: "One or more problems were encountered when parsing the filter: -- line 1 col 29: invalid BoolCompExprTail"
Currently Grammar has these specified as $functions
Hello,
#99 issue is very similar, but was closed with a fix, which actually fixes only #109 , as
contains
refers to comparison within a string, not a list. It is similar to sqlLIKE
operator.So if we have
Field1 = APK1234
,Field2 = 1234
&Field3 = 5678
$client->where('Field', '!contains', 'APK')
or$client->where('Field', 'not like', 'APK')
should return only Field2 & Field3But it does not work, as I am getting
400 Bad Request response: "One or more problems were encountered when parsing the filter: -- line 1 col 29: invalid BoolCompExprTail"
Currently Grammar has these specified as
$functions
odata-client-php/src/Query/Grammar.php
Line 22 in 77a80d9
I am aware, that OData does not support invert of contains by default, instead
$filter=indexof(Field, 'APK') eq -1
provides inverted behavior.How can we achieve such functionality with your library?
The text was updated successfully, but these errors were encountered: