odata-client-php
odata-client-php copied to clipboard
where chained with orWhere fails
Hi, I'm trying to do a where chained together with an orWhere. But it fails:
$orders1 = $odataClient->from('orders')
->where([
['Sell_to_Customer_No', '=', $customerNo],
["Document_No", ">=", $term],
])
->orWhere([
['Sell_to_Customer_No', '=', $customerNo],
["No", ">=", $term],
])
->order("Document_No", "desc")
->get()
Can you tell what the generated URL is?
Might be worth putting together a quick unit test like those in BuilderTest.php with your where and orWhere calls and generating the request URI to track down where the issue is.
No I can't see the generated URL?
Added tests to cover this in 5318323 and c38e00d, but unable to reproduce.