Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Is it possible to set multiple ORM relations between two tables?
  • Example. I have 2 ORM models:
    - country with PK field ID
    - order with two fields shipping_country_id and billing_country_id

    Is there a way to set 2 belongs_to relations trough shipping_country_id and billing_country_id fields and get something like this:

  • Just define them like normal (i.e. the array notation), specifying the correct keys to make the link.
  • Thanks Harro it works...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion