-3
データベースからクエリの結果を取得しようとしています。'エラー:クラス' search_result 'がカスタムクエリで定義されていません
$em2 = $this->getDoctrine()->getManager();
$qb=$em2->createQuery('select count(DISTINCT hotel_id) FROM search_result where request_id=:searchId')->setParameter('searchId',$searchId);
$result = $qb->getResult();
そして、取得エラー:
ine 0, col 37 near 'search_result': Error: Class 'search_result' is not defined.