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 and the model linked must 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.
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.
Read the Docs v: latest
Versions
latest
dubrovka
chiba.2
chiba.1
0.2
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.