In http://docs.fuelphp.com/packages/orm/relations/belongs_to.html the following example is given:
// in a Model_Comment which belong to a post
protected static $_belongs_to = array(
'post' => array(
'key_from' => 'comment_id',
'model_to' => 'Model_Post',
'key_to' => 'id',
'cascade_save' => true,
'cascade_delete' => false,
)
);
Given the description above the example, should the key_from value not be 'post_id'?
Regards,
Bert de Miranda.