Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants