Hi,
I have problems with $crud->where() and $crud->set_relation(). If i use both of them, it won't work. But it works perfectly if i only using one of them.
here is my code:
⚠ 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. ⚠
Posted 20 December 2013 - 03:12 AM
Hi,
I have problems with $crud->where() and $crud->set_relation(). If i use both of them, it won't work. But it works perfectly if i only using one of them.
here is my code:
Posted 20 December 2013 - 07:33 AM
What is the problem i use where and relations with no problems in a loot of functions, i even extended to where_in so i can easy use arrays ...
Posted 23 December 2013 - 07:35 AM
Problem solved.
Both tbl_user and tbl_role has field 'approval status' which conflicts. To prevent this, i added tbl_name before field : $crud->where('tbl_user.status','approved');
It works perfectly now.
:D