⚠ 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

Grocery crud to show display name instead of ID



faisalnaseer
  • profile picture
  • Member

Posted 26 November 2015 - 21:21 PM

In my application I have two tables

orders:

order_id

order_number

products:

product_id

product name

order_id(foreign key)

and in my phpmyadmin I chose order_id to display as order_number but when I render the view associated with products it displays order_id. is there any way that it can order_number instead of order_id?

 


Paul Savostin
  • profile picture
  • Member

Posted 26 November 2015 - 22:13 PM

Actualy i dont understood your question, ->set_relation('order_id','orders','order_number') doesnt work???