Twinnable Has Many

The twinnable_has_many relation is the equivalent of the FuelPHP native has_many relation (moreover, it extends has_many). 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_many 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.
Read the Docs v: dubrovka
Versions
latest
elche
dubrovka
chiba.2
chiba.1
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.