这是我的查询
$id 包含主键,$status 包含新状态
public function updateStatus($id,$status)
{
$qb=$this->createQueryBuilder('b')
->update()
->set('b.status',$status)
->where('b.id='.$id);
echo $qb;
return $qb->getQuery()
->getResult();
}
我面临的问题是
[Semantical Error] line 0, col 56 near 'Complete WHERE': Error: 'Complete' is not defined.