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

我怕爱的太早我们不能终老 提交于 2019-12-05 16:55:17

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)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!