Skip to content

Commit 0a77df2

Browse files
Merge branch '6.0' into 6.1
* 6.0: [DoctrineBridge] Treat firstResult === 0 like null [Translation] Refresh local translations if the provider has domains [HttpKernel] Fix SessionListener without session in request #46268 [Notifier] Allow symfony/mercure 0.6 in Mercure bridge
2 parents e9c06ad + 3cad7a0 commit 0a77df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Form/ChoiceList/ORMQueryBuilderLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getEntities(): array
5151
*/
5252
public function getEntitiesByIds(string $identifier, array $values): array
5353
{
54-
if (null !== $this->queryBuilder->getMaxResults() || null !== $this->queryBuilder->getFirstResult()) {
54+
if (null !== $this->queryBuilder->getMaxResults() || 0 < (int) $this->queryBuilder->getFirstResult()) {
5555
// an offset or a limit would apply on results including the where clause with submitted id values
5656
// that could make invalid choices valid
5757
$choices = [];

0 commit comments

Comments
 (0)