Functions executeQuery and executeStatement do not exists in 20

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2022-01-17 12:00:02 +01:00
parent 02e78231f9
commit d6b0ff4163
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -53,7 +53,7 @@ abstract class GroupMappingMigration extends SimpleMigrationStep {
->from($sourceTable);
$result = $query->executeQuery();
$result = $query->execute();
while ($row = $result->fetch()) {
$insert
->setParameter('ldap_dn', $row['ldap_dn'])
@ -62,7 +62,7 @@ abstract class GroupMappingMigration extends SimpleMigrationStep {
->setParameter('ldap_dn_hash', $row['ldap_dn_hash'])
;
$insert->executeStatement();
$insert->execute();
}
$result->closeCursor();
}