-
Notifications
You must be signed in to change notification settings - Fork 12
Description
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