私のリポジトリには、次のクエリがあります。
$qb = $this->getEntityManager()->createQueryBuilder();
$qb
->update('MyBundle:Entity1', 'e1')
->join('e1.Entity2', 'e2')
->set('e1.visibile', '1')
->andWhere('e2.id = :id')->setParameter("id", 123)
;
このエラーをスローします
[Semantical Error] line 0, col 66 near 'e2.id = :id': Error: 'e2' is not defined
関係を確認しましたが、正しいです。クエリの更新で結合を使用する際に問題はありますか?