-
Notifications
You must be signed in to change notification settings - Fork 46
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
Filter Relations: Ambiguous column reference error #25
Comments
hello, glad that purity helped you. |
What do you think if we manual add table name inside laravel-purity/src/Filters/Resolve.php Lines 188 to 190 in 342d882
I tried implementing this in the Current: laravel-purity/src/Filters/Strategies/EqualFilter.php Lines 25 to 27 in 342d882
Modified: foreach ($this->values as $value) {
$query->where($query->from . '.' . $this->column, $value);
} Let me know if you have any other thoughts! |
First of all, thank you to the author and contributors for creating this useful package!
I ran into the following error when using the package:
Endpoint:
Post.php
Error:
The query needs to disambiguate the ambiguous id column reference.
I'm happy to provide any other details that would be helpful.
Again, thanks for your work on this package!
The text was updated successfully, but these errors were encountered: