Models and Associations
Part 3
Models and associations, one-to-one, one-to-many, many-to-many
- one-to-one relation: User -> Address
- one-to-many relation: User -> Blogs
- using join tables to manage many-to-many relations
- many-to-many relation: Blogs <-> Tags
- manage child entities with pop’s Eager() method, * or using model methods