Skip to content
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

Remplace hard coded table name by config #103

Open
wants to merge 1 commit into
base: release/9.0
Choose a base branch
from

Conversation

lbeauvisage
Copy link

if we use a "users" model (add table_name) different from \App\Models\User::class' the appliedByUser()` method failed with an SQL error:

Illuminate\Database\QueryException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.id' in 'where clause' (SQL: select exists(select * from `competitors` inner join `promocode_competitor` on `competitors`.`id` = `promocode_competitor`.`user_id` where `promocode_competitor`.`promocode_id` = 1 and users.id = 6 and `competitors`.`deleted_at` is null) as `exists`) 

@ArtMin96
Copy link

ArtMin96 commented Jan 5, 2024

Any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants