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
dd($self->bar()->onlyTrashed()->whereHas('qux', function ($query) {
$query->onlyTrashed()->where('foo', 'bar');
})->toSql());
Generates:
select * from `bars` where `bars`.`owner_id` = ? and `bars`.`owner_id` is not null and `bars`.`owner_type` = ? and `bars`.`deleted_at` is not null and (select count(*) from `quxes` where `bars`.`qux_id` = `quxes`.`id` and `quxes`.`deleted_at` is not null and `foo` = ? and `quxes`.`deleted_at` is null) >= 1
To be clear;
quxes.deleted_at is not null and quxes.deleted_at is null
Looks like a bug to me.
The text was updated successfully, but these errors were encountered:
Generates:
To be clear;
Looks like a bug to me.
The text was updated successfully, but these errors were encountered: