The twinnable_has_one relation is the equivalent of the FuelPHP native has_one relation (moreover, it extends has_one). The difference is that the link is not made on the primary key but on the context common ID.
If you use the twinnable_has_one relation, the model and the model linked must implement Twinnable behaviour.
key_from: | Calculated from the behaviour Twinnable. |
---|---|
model_to: | The full class name of the target model. Calculated from alias. |
key_to: | The key used for the relation in the linked model. |
column_context_from: | |
Calculated from the behaviour Twinnable. | |
column_context_to: | |
Calculated from the behaviour Twinnable. | |
column_context_is_main_to: | |
Calculated from the behaviour Twinnable. |