Skip to content

Commit

Permalink
Try to reproduce internal error
Browse files Browse the repository at this point in the history
See #602
  • Loading branch information
ondrejmirtes committed Aug 19, 2024
1 parent 285d78d commit 6632f38
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Rules/Doctrine/ORM/data/query-builder-dql.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,14 @@ public function qbExprMethod(): void
$queryBuilder->getQuery();
}

public function bug602(array $objectConditions): void
{
$queryBuilder = $this->entityManager->createQueryBuilder();
$queryBuilder->select('e')
->from(MyEntity::class, 'e')
->andWhere($queryBuilder->expr()->orX(...$objectConditions));
}

}

class CustomExpr extends \Doctrine\ORM\Query\Expr
Expand Down

0 comments on commit 6632f38

Please sign in to comment.