⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

set_relation with three tables



davedriesmans

davedriesmans
  • profile picture
  • Member

Posted 05 July 2013 - 12:29 PM

RDWN6.png

on top you have two tables and you can create a nice dropdown via:

$crud->set_relation('employees', 'offices', '{city} - ({country})');

 

BUT what if country was a relation with country_id and i want to fetch the country_name from a third table?


davidoster

davidoster
  • profile picture
  • Member

Posted 05 July 2013 - 12:46 PM

Then you do a custom model!