Summarize Relationship aggregate
Hi, is there a way to custom summarize a relationship sum aggregate?
Something like:
This throws a:
Undefined property: Illuminate\Database\Query\Builder::$payroll_items_sum_reg_hours
How could I access the relationship in the summarizer?
4 Replies
did u import the builder class?
Sure! But I guess Query\Builder doesn't work as Eloquent\Builder, so it can access Eloquent methods
what eloquent method do u need? I believe it is query / builder as it uses less memory which is important when dealing with large number of records
I need the sum method, you could see what I’m trying to do in my example code above.