[Solar-talk] _hasOne Help
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Nov 14 12:08:21 CST 2007
On Nov 14, 2007 3:56 PM, Raymond Kolbe wrote:
> Does 'native_col' => 'MARKET_id', does MARKET_id have to be the name of
> the table col or, would I just keep the table col name 'id'? This is the
> part that I think has really confused me when trying to setup my DB and
> models.
It is the name of the table column that stores the *foreign key*. I
suppose you use 'id' as the primary key, so native_col should point to
the column name that stores the id of the MARKET model ('market_id',
maybe?).
'native_col' means "the native column that maps to a foreign record".
-- rodrigo
More information about the Solar-talk
mailing list