⚠ 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 1:n



rteranm
  • profile picture
  • Member

Posted 09 July 2012 - 20:44 PM

set_relation 1:n

how do I relate more 2 tables with $ crud-> set_relation (string field_name, string related_table; string related_title_field; [mix where_clause = 'null'], [order_by = 'null'])

My example does not work, as I do? thanks

$ crud-> set_relation ('mo_id_modelo' ;' tb_modelo ';' mo_descripcion'; '[[color=#ff0000][b]tb_modelo.ma_id_marca=tb_marca.ma_id[/b][/color]]'; [order_by ='null '])

I need a examples please , thanks

noskov.biz
  • profile picture
  • Member

Posted 10 July 2012 - 09:56 AM

Hi, rteranm!

You can find perfect examples at the set_relation page. For more info about Grocery CRUD functions follow this link. Hope it will usefull for you.