Open LorensoD opened 1 year ago
You should already be able to resolve this by calling ->dateColumn('foo.created_at')
on your Trend.
Thanks for the tip @ceejayoz! I didn't realise that.
But since I use a lot of joins in one of my projects I would still love it if the models table name is automatically prepended to the date column. That would make it just a bit cleaner and make joins work out of the box.
As suggested in #18 by @ArnoudLier it would be great if the table name of the queried model could be prefixed to the date column.
This prevents ambiguous column exceptions (like the one below) when providing a JOIN query.