문제

I am getting the below error while fetching data from table.

500 | Internal Server Error | Doctrine_Exception

Couldn't find class tasks_comments

$r = Doctrine_Query::create()
    ->select('u.worked_hours')
     ->from('tasks_comments u')
     ->where('u.tasks_id = ?', $arr_values['tasks_id'])
     ->andwhere('u.id != ?', $arr_values['id']);
$results1 = $r->execute();

But, I didn't get any error for another table as the above format. please check and suggest me.

도움이 되었습니까?

해결책

change this

  ->where('u.tasks_id = ?', $arr_values['tasks_id'])

to

  ->andwhere('u.tasks_id = ?', $arr_values['tasks_id'])
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top