user :
- u_id
- u_ut_id
section:
- s_id
- s_name
doctor:
- d_u_id
- d_s_id
and using the following n-n relation
$crud->set_relation_n_n('u_id','doctor','section','d_u_id','d_s_id','s_name' );
with this where condition
$crud->where('u_ut_id','2');
I want to edit doctors to assign them to sections
when clicking on the Edit button it takes me to
localhost/project/index.php/control_doctors/doctors_management/edit/section1
Where section1 is the s_name
which is giving me an error saying
[b] A PHP Error was encountered[/b]
Severity: Warning
Message: Attempt to assign property of non-object
Filename: libraries/grocery_crud.php
Line Number: 1121
Manually editing the url to
localhost/project/index.php/control_doctors/doctors_management/edit/1
solves the problem
So How can i solved this ?