Replace deprecated doctrine methods in lib directory
[MAILPOET-3889]
This commit is contained in:
committed by
Veljko V
parent
efde80b5c4
commit
73a9bed483
@@ -59,7 +59,7 @@ class StatsNotificationsRepository extends Repository {
|
||||
public function deleteOrphanedScheduledTasks() {
|
||||
$scheduledTasksTable = $this->entityManager->getClassMetadata(ScheduledTaskEntity::class)->getTableName();
|
||||
$statsNotificationsTable = $this->entityManager->getClassMetadata(StatsNotificationEntity::class)->getTableName();
|
||||
$this->entityManager->getConnection()->executeUpdate("
|
||||
$this->entityManager->getConnection()->executeStatement("
|
||||
DELETE st FROM $scheduledTasksTable st
|
||||
LEFT JOIN $statsNotificationsTable sn ON sn.task_id = st.id
|
||||
WHERE sn.id IS NULL AND st.type = :taskType;
|
||||
|
Reference in New Issue
Block a user