Skip to content

Compatibility with Codeigniter Shield #37

@Saddalim

Description

@Saddalim

CodeIgniter's authentication framework, Shield, allows for the customization of its User model and entity via extending CodeIgniter\Shield\Models\UserModel. As CI4OrmExtension also works via extending its own model class, OrmExtension\Extensions\Model, this raises compatibility issues as you cannot extend both model baseclasses. A typical use-case would be a site that uses Shield for authentication and would also like to link other ORM objects to Users.

What I could see as a strightforward workaround is to copy the functionality in OrmExtension\Extensions\Model into an own baseclass that extends CodeIgniter\Shield\Models\UserModel, but this is bad on multiple levels (code duplication, issues with CI4OrmExtension version upgrades, etc).

Is there a thought or common solution ready to solve this? If not, do you have a concept in mind?

Thanks

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