Twinnable Has One

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 must implement Twinnable behaviour.

Changed in version 4.2: Before the 4.2 (Dubrovka) version, the linked model also need to implement Twinnable behaviour.

Configuration

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 if model_to is twinnable.
column_context_from:
 Calculated from the behaviour Twinnable if model_to is twinnable.
column_context_to:
 Calculated from the behaviour Twinnable if model_to is twinnable.
column_context_is_main_to:
 Calculated from the behaviour Twinnable if model_to is twinnable.