We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
with_("users")
Describe the bug If you use with_("users") then this will give issue related to deleted_at field.
deleted_at
To Reproduce
UserModel
class User(Model, SoftDeletesMixin, Authenticates): """User Model.""" __fillable__ = ["name", "email", "password", "verified_at"] __hidden__ = ["password"] __auth__ = "email" @belongs_to_many('user_id', 'role_id', 'id', 'id') def roles(self): from app.models.Role import Role return Role
Role Model
class Role(Model): """Role Model.""" __fillable__ = [ "name", "slug", "status"] @belongs_to_many('role_id', 'user_id', 'id', 'id') def users(self): from app.models.User import User return User
Implementation
roles = Role.with_("users").get() return roles
Issue
Note: I have not used SoftDeletesMixin in Role, because I don't need that in Role Model.
SoftDeletesMixin
The text was updated successfully, but these errors were encountered:
Fixed in #566
Sorry, something went wrong.
No branches or pull requests
Describe the bug
If you use
with_("users")
then this will give issue related todeleted_at
field.To Reproduce
UserModel
Role Model
Implementation
Issue
Note: I have not used
SoftDeletesMixin
in Role, because I don't need that in Role Model.The text was updated successfully, but these errors were encountered: