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

@@ -21,7 +21,7 @@ class SettingsRepository extends Repository {
// by a code solving atomicity of create-or-update on entity (ORM) level in a follow-up ticket.
$now = Carbon::createFromTimestamp(WPFunctions::get()->currentTime('timestamp'));
$tableName = $this->entityManager->getClassMetadata(SettingEntity::class)->getTableName();
$this->entityManager->getConnection()->executeUpdate("
$this->entityManager->getConnection()->executeStatement("
INSERT INTO $tableName (name, value, created_at, updated_at)
VALUES (:name, :value, :now, :now)
ON DUPLICATE KEY UPDATE value = :value, updated_at = :now