【发布时间】:2014-10-19 13:25:53
【问题描述】:
我尝试使用教义提出一个非常简单的请求,但遇到了一些麻烦:
return $this->createQueryBuilder('l')
->set('l.valide', true)
->andWhere('l.artiste=:artiste')
->andWhere('l.client=:client')
->andWhere('l.annonce=:annonce')
->setParameters(
array(
':artiste' => $artiste,
':client' => $client,
':annonce' => $annonce
))
->getQuery()
->getResult();
请求正在执行且没有错误,但更新没有。 此请求必须在“有效”字段中输入 1。 表中的某些项目与 3 where 子句匹配。
怎么了?
感谢您的帮助
【问题讨论】:
标签: php mysql symfony doctrine-orm