I want to share a small project called CodeIgniter Relations. It adds support for rich model relations such as HasOne, HasMany, BelongsTo, BelongsToMany, including polymorphic and through relations, while staying fully based on CodeIgniter 4 models and entities.
The package supports eager and lazy loading to avoid N+1 queries, lets you save related data directly through relations, and relies on conventions to keep configuration minimal.
You may remember (or not) my similar project. This is the next version - better designed and with more options.
GitHub: https://github.com/michalsn/codeigniter-relations
Docs: https://michalsn.github.io/codeigniter-relations/
The package supports eager and lazy loading to avoid N+1 queries, lets you save related data directly through relations, and relies on conventions to keep configuration minimal.
You may remember (or not) my similar project. This is the next version - better designed and with more options.
GitHub: https://github.com/michalsn/codeigniter-relations
Docs: https://michalsn.github.io/codeigniter-relations/
