set_relation using index other than primary key
- Single Page
Posted 02 April 2012 - 11:16 AM
Thanks in advance.
Regards,
Mat
Posted 04 April 2012 - 18:31 PM
Thanks
Posted 04 April 2012 - 21:47 PM
Posted 05 April 2012 - 12:03 PM
Mat
Posted 20 September 2012 - 06:16 AM
Posted 20 September 2012 - 23:03 PM
[list=1]
[*]join_relation() in Grocery_Crud_Model.php
[*]get_relation_array(), both in Grocery_Crud_Model.php and Grocery_Crud.php library
[*]set_relation() in Grocery_Crud.php library
[/list]
I add another parameter what I called $join_key, which I used as a index key relation other than primary key. And it works.
Posted 16 February 2013 - 11:20 AM
I've tried to set relation using index other than primary key, by modifying these files :
I add another parameter what I called $join_key, which I used as a index key relation other than primary key. And it works.
- join_relation() in Grocery_Crud_Model.php
- get_relation_array(), both in Grocery_Crud_Model.php and Grocery_Crud.php library
- set_relation() in Grocery_Crud.php library
could you please share the code