error: Fatal error: Class 'Join' not found
error: Fatal error: Class 'Join' not found
jsomweb
Posts: 8Questions: 4Answers: 0
Hi, I tried to use join and some how get class not found error.
Here is how code look like
$editor = Editor::inst( $db, 'courses','id' )
->fields(
Field::inst( 'courses.acad_plan' ),
...
)
->join(
Join::inst('assign_courses as assign','object')
->link('courses.id','assign.cid')
->link('assign.sid','student_temp.id')
->where('assign.s_order','1','=')
->fields(
Field::inst('id')
->options('student_temp','id','email'),
Field::inst('email')
)
);
->process( $_POST )
->json();
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Have you included
DataTables\Editor\Join
in youruse
statement?Allan
Thank you. I forgot to include it