Open emiliogrv opened 4 years ago
I got the same problem after upgrading to L7, thanks for the workaround @emiliogrv !
@jarektkaczyk This behaviour is introduced with addition of where subqueries Subquery Where Clauses I don't have much time on my hands at the moment to make a better solution, but I could confirm that this change in https://github.com/jarektkaczyk/hookable/blob/master/src/Builder.php is a quick fix:
{
if (!in_array(strtolower($operator), $this->operators, true) && !($column instanceof Closure)) {
list($value, $operator) = [$operator, '='];
}
$bag = $this->packArgs(compact('column', 'operator', 'value', 'boolean'));
return $this->callHook(__FUNCTION__, $bag);
}
Related to https://github.com/jarektkaczyk/eloquence/issues/261, and pull request https://github.com/jarektkaczyk/hookable/pull/27
Description:
After upgrade from L6 to L7 some queries begun to fail
Steps To Reproduce:
code:
result:
work around:
//-------------- code:
result:
work around:
Eloquent call without removing any lines.
first one:
second one:
NOTE: after removing elquence trait the queries work properly