Replace deprecated doctrine methods in lib directory
[MAILPOET-3889]
This commit is contained in:
committed by
Veljko V
parent
efde80b5c4
commit
73a9bed483
@@ -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
|
||||
|
Reference in New Issue
Block a user