tattersoftware / codeigniter4-relations

Entity relationships for CodeIgniter 4
MIT License
87 stars 20 forks source link

Relation names don't have to be the same as Table names. #22

Closed yicheng-alertus closed 2 years ago

yicheng-alertus commented 3 years ago

Modified BaseTrait so that relationName and tableName don't have to be necessarily the same.

For example, you may want to have a Group to User (many to many) association but also have a Group to User (many to one) relationship to represent group ownership.

MGatner commented 2 years ago

@yicheng-alertus If you are still interested in this please rebase and fix the style errors.