How to use grocery set_relation function to display content from two different tables in different columns How to use grocery set_relation function to display content from two different tables in different columns codeigniter codeigniter

How to use grocery set_relation function to display content from two different tables in different columns


my way kinda ridiculous,
if i were really need the field to be separated, i might use callback_column then use active records to return the value using $row->user_id, and callback each record

just like:
return $this->some_model->get_name($row->user_id); for name field
and
return $this->some_model->get_name($row->user_id); for email field

but, as i tested with some dummy records, it can't be sorted, (i dont know if anyone could)