Support the ongoing development of Laravel.io →
Eloquent Blade
Last updated 1 year ago.
0

Essentially, why is the IS NULL where clause being added to this query

select * from bids where bids.contractor_id is null and contractor_id = ?

and

select * from bids where bids.contractor_id is null

when the One Many has been setup. Why isn't a where contactor_id = ? the only clause when using $contractor->bids or $contractor->bids()->get()

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.