Replace deprecated doctrine methods in lib directory

[MAILPOET-3889]
This commit is contained in:
Rostislav Wolny
2021-10-27 10:16:54 +02:00
committed by Veljko V
parent efde80b5c4
commit 73a9bed483
11 changed files with 35 additions and 35 deletions

View File

@@ -96,7 +96,7 @@ class ImportExportRepository {
$rows[] = "(" . implode(', ', $paramNames) . ")";
}
return $this->entityManager->getConnection()->executeUpdate("
return $this->entityManager->getConnection()->executeStatement("
INSERT IGNORE INTO {$tableName} (`" . implode("`, `", $columns) . "`) VALUES
" . implode(", \n", $rows) . "
", $parameters);
@@ -156,7 +156,7 @@ class ImportExportRepository {
$updateColumns[] = 'deleted_at = NULL';
}
return $this->entityManager->getConnection()->executeUpdate("
return $this->entityManager->getConnection()->executeStatement("
UPDATE {$tableName} SET
" . implode(", \n", $updateColumns) . "
WHERE