-
-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
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
BelongsToMany relationship with orderBy returns duplicate column name created_at #2705
Comments
@dragonfly4 sorry for late response. I think this PR #2721 will fix the issue. Would you be able to review and give some feedbacks? Thanks! |
@yajra Thanks for your reply! I tested that but it's not fixing the issue above. Same error. Do you want me to share anything else please? |
Let's continue the discussion in the PR. Thanks! |
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
Summary of problem or feature request
Displaying list of records from Pivot Table works. Basic example with a belongsToMany in the model.
Add orderBy results in duplicate column error. The Pivot Table has timestamp columns.
The same command executes properly in Tinkerwell / Laravel Controller. But not via laravel-datatables. Maybe related to #1739 ?
Quick fix for me was to add a select to exclude the created_at + updated_at columns.
System details
The text was updated successfully, but these errors were encountered: