Twinnable Many to Many

The twinnable_many_many relation is the equivalent of the FuelPHP native many_many relation (moreover, it extends many_many). The difference is that the link is not made on primary keys but on context common IDs.

If you use the twinnable_many_many relation, the model and the model linked must implement Twinnable behaviour.

Configuration

key_from:The key used for the relation in the current model
model_to:The full class name of the target model. Calculated from alias.
key_to:Calculated from the behaviour Twinnable.
table_through:This is the table that connects the 2 models and has both their common IDs in it.
key_through_from:
 The key that matches the current model’s common ID.
key_through_to:The key that matches the related model’s common ID.
column_context_from:
 Calculated from the behaviour Twinnable.
column_context_common_id_to:
 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.