Model Relationship Reference

`BelongsTo`, `HasMany`, `HasOne` options

Basic options for all relationships are:

'option' 'description'
foreign_name The name of the related model, eg: user
foreign_key The name of the foreign join key, eg: user_id

`HasManyThrough` added option

'option' 'description'
through_key The name of the “through” table column for the foreign records.
 
tutorials/model_relationship_reference.txt · Last modified: 2010/01/04 18:06 by pmjones