error: Fatal error: Class 'Join' not found

error: Fatal error: Class 'Join' not found

jsomwebjsomweb 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

Answers

  • allanallan Posts: 61,920Questions: 1Answers: 10,153 Site admin
    Answer ✓

    Have you included DataTables\Editor\Join in your use statement?

    Allan

  • jsomwebjsomweb Posts: 8Questions: 4Answers: 0

    Thank you. I forgot to include it

This discussion has been closed.