.. _php/relations/twinnable_has_many: 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 :doc:`Twinnable behaviour `. .. versionchanged:: 4.2 Before the ``4.2 (Dubrovka)`` version, the linked model also need to implement Twinnable behaviour. .. seealso:: * :doc:`Twinnable behaviour ` * :doc:`/php/configuration/software/multi_context`. * `FuelPHP native has_many `__ 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.