Skip to content

Commit 6632f38

Browse files
committed
Try to reproduce internal error
See #602
1 parent 285d78d commit 6632f38

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Rules/Doctrine/ORM/data/query-builder-dql.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,14 @@ public function qbExprMethod(): void
291291
$queryBuilder->getQuery();
292292
}
293293

294+
public function bug602(array $objectConditions): void
295+
{
296+
$queryBuilder = $this->entityManager->createQueryBuilder();
297+
$queryBuilder->select('e')
298+
->from(MyEntity::class, 'e')
299+
->andWhere($queryBuilder->expr()->orX(...$objectConditions));
300+
}
301+
294302
}
295303

296304
class CustomExpr extends \Doctrine\ORM\Query\Expr

0 commit comments

Comments
 (0)