Top "Has-many" questions

has_many indicates a master-detail relationship.

Rails 4 Eager Load has_many Associations for single object

I get the benefits of using eager loading to avoid N+1 when fetching an array of objects with their associated …

ruby-on-rails many-to-many has-many eager-loading ruby-on-rails-4.1
rails scope through has_many association

I have two models for Show and Performance (show as in a play or comedy show). They are associated like …

ruby-on-rails-4 scope associations has-many
Rails Question: belongs_to with STI -- how do i do this correctly?

I've been playing around with STI and belongs_to / has_many relationships and I'm a bit confused. I have a …

ruby-on-rails ruby-on-rails-3 has-many single-table-inheritance sti
has_many and single table inheritance

I have a has_many relationship between two entities, Feeds and Posts. I also have specific types of posts, Videos …

ruby-on-rails has-many single-table-inheritance
CakePHP: few joins, belongsTo and hasMany relations done in two queries

I need some help with CakePHP 2.2.3. What I have I have the following setup at the moment: Post hasMany Attachment …

php mysql cakephp has-many belongs-to
RAILS: How to get has_many associations of a model

how I can get the has_many associations of a model? For example if I have this class: class A &…

ruby-on-rails ruby has-many
Grails dynamic scaffold with hasMany: is it a bug or am I misconfiguring?

I'm a Grails noob and running into something that seems to be a bug, but it is entirely possible I'm …

grails has-many