// in a Model_User which has one profile
protected static $_has_one = array(
'profile' => array(
'key_from' => 'id',
'model_to' => 'Model_Profile',
'key_to' => 'user_id',
'cascade_save' => true,
'cascade_delete' => false,
)
);
Harro Verton wrote on Friday 23rd of December 2011:No. The key fields in the relationship definition are used to generate the SQL for the joins, so they are required.
It looks like you're new here. If you want to get involved, click one of these buttons!