We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return AccessAddress::query() ->joinRelationship("contracts", fn($join) => $join->where("column", "someting")) ->count();
Doing this with belongsTomany relationship (contracts) will not fail, but the were sentence (column, something) will never be applied.
The docs does say you should do something like:
User::joinRelationship('groups', [ 'groups' => [ 'groups' => function ($join) { // ... }, // group_members is the intermediary table here 'group_members' => fn ($join) => $join->where('group_members.active', true), ] ]);
It would make sense to throw an error to prevent implementing it wrong
or make it if you use a callback it would use it like this underneed:
AccessAddress::query()->joinRelationship('contracts', [ 'contracts' => fn($join) => $join->where("column", "someting")) ])->count();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Doing this with belongsTomany relationship (contracts) will not fail, but the were sentence (column, something) will never be applied.
The docs does say you should do something like:
It would make sense to throw an error to prevent implementing it wrong
or make it if you use a callback it would use it like this underneed:
The text was updated successfully, but these errors were encountered: