tailflow / laravel-orion

The simplest way to create REST API with Laravel

Home Page:https://orion.tailflow.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regression: impossible to call sub-relations with the QueryBuilder

FXLaroche opened this issue · comments

After updating to the latest version (1.21.1) there is a problem with the query builder, where queries will return an error if subrelations are called.
It worked fine with the 1.19 version.

The origin of the issue seems to be a change in the Orion\Drivers\Standard\QueryBuilder class.

Hi,

Thank you for reporting this. Could you please provide a concrete example, so I could investigate it further?

// (POST) /users/search
{
  "filters": [
        {"field" : "site.client.id", "operator" : "=", "value" : 1}
  ]
}

Basically, the filters are trying to access "User::site.client" which is the problem due to the line I reported just right up.

Should be fixed in v2.22.0, please let me know, if you continue facing the same issue.