We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932520c commit 2fef871Copy full SHA for 2fef871
src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php
@@ -50,7 +50,7 @@ public function getEntities()
50
*/
51
public function getEntitiesByIds($identifier, array $values)
52
{
53
- if (null !== $this->queryBuilder->getMaxResults() || null !== $this->queryBuilder->getFirstResult()) {
+ if (null !== $this->queryBuilder->getMaxResults() || 0 < (int) $this->queryBuilder->getFirstResult()) {
54
// an offset or a limit would apply on results including the where clause with submitted id values
55
// that could make invalid choices valid
56
$choices = [];
0 commit comments