Skip to content

Are relations supposed to work with inheritance? #49

Description

@thokari

Hi again,

say I have a model that extends another model, like StaffUser and User for example.
Now when I set it up like the examples suggest, but also have StaffUser extends User, then, besides still having the problem, that the foreign keys for the relationships do not get set properly (#48), my 'Address' instance (when assigning a 'StaffUser' instance to its 'user' property) now has two fields, user_id and staff_user_id (both 'null' as of issue mentioned before).

I realise this is a complex issue, and coming from an object oriented background I might be expecting too much.
However your software looks very promising, and even without this feature it would save a lot of boilerplate code.

Thanks for your help!
Thomas

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions