From 4fe0a6f2b941734c1e0f0f335d240723e331480c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Sat, 7 Nov 2020 21:18:28 +0100 Subject: [PATCH 1/2] Fix LDAP pagination --- src/Symfony/Component/Ldap/Adapter/ExtLdap/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Ldap/Adapter/ExtLdap/Query.php b/src/Symfony/Component/Ldap/Adapter/ExtLdap/Query.php index 151e478811..6bb798319c 100644 --- a/src/Symfony/Component/Ldap/Adapter/ExtLdap/Query.php +++ b/src/Symfony/Component/Ldap/Adapter/ExtLdap/Query.php @@ -174,7 +174,7 @@ class Query extends AbstractQuery private function resetPagination() { $con = $this->connection->getResource(); - $this->controlPagedResultResponse($con, 0, ''); + $this->controlPagedResult($con, 0, ''); $this->serverctrls = []; // This is a workaround for a bit of a bug in the above invocation From 784bd0080d66624cb01b1e293559df7c43e099e9 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 9 Nov 2020 09:59:19 +0100 Subject: [PATCH 2/2] also reset id readers --- src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php index 97f5facf62..4ff2e508c1 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php @@ -279,6 +279,7 @@ abstract class DoctrineType extends AbstractType implements ResetInterface public function reset() { + $this->idReaders = []; $this->choiceLoaders = []; } }