withSum In some cases, the result is null. Can it be replaced with 0? #45645
Answered
by
Sophist-UK
samehdoush
asked this question in
General
-
In some cases the result is false because the value is null
Payments Table :
in OrderController I want to filter the results and show only orders that have a remaining amount
Is there a way to make withSum return 0 permanently if it is null? |
Beta Was this translation helpful? Give feedback.
Answered by
Sophist-UK
Jan 13, 2023
Replies: 1 comment 2 replies
-
This is clearly an issue with the SQL that is being generated. Can you show us the SQL from the two statements in the final example? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
samehdoush
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is clearly an issue with the SQL that is being generated. Can you show us the SQL from the two statements in the final example?