This pull request fixes an issue where queries like Order::query()->where('hello', 'world')->get() would error when using Database Orders.
This was happening since the query builders were querying as if hello was a real column. However, we store a lot of things inside the data JSON column.
This PR fixes that for both the order & customer query builders to ensure if a column doesn't exist matching the provided column name, it'll instead query against the data column.
This pull request fixes an issue where queries like
Order::query()->where('hello', 'world')->get()
would error when using Database Orders.This was happening since the query builders were querying as if
hello
was a real column. However, we store a lot of things inside thedata
JSON column.This PR fixes that for both the order & customer query builders to ensure if a column doesn't exist matching the provided column name, it'll instead query against the
data
column.Fixes #1002.