You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documenting the use of through in find with BelongsToMany association #3416
The only mention of this I could find was in - #3258
I would suggest adding -
When eager loading the through parameter can be used to define the required relations.
The following example will only fetch Projects that have been started -
@mickhansen The documentation for through.where and through.attributes applies to all associations between models, yes (hasOne, hasMany, belongsTo, belongsToMany)? Would it make sense to add this to all four documentation sections?
Activity
mickhansen commentedon Mar 27, 2015
Both
through.whereandthrough.attributesneed to be documented definitely.harimohanraj89 commentedon Apr 8, 2015
@mickhansen The documentation for
through.whereandthrough.attributesapplies to all associations between models, yes (hasOne, hasMany, belongsTo, belongsToMany)? Would it make sense to add this to all four documentation sections?mickhansen commentedon Apr 9, 2015
@harimohanraj89 No,
throughonly exists on belongsToMany.harimohanraj89 commentedon Apr 9, 2015
Ah, my mistake. I was thinking of the
includeoption on finder methods. 👍