From 0cbd0ce28a5a65b218db79bed60912d14f50bfbb Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sun, 24 Dec 2023 20:29:51 +0100 Subject: [PATCH] Fix getEntity() depreciation --- .../Event/Subscriber/SQLiteCascadeDeleteSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Wallabag/CoreBundle/Event/Subscriber/SQLiteCascadeDeleteSubscriber.php b/src/Wallabag/CoreBundle/Event/Subscriber/SQLiteCascadeDeleteSubscriber.php index 4b9d5c243..9a1e05e73 100644 --- a/src/Wallabag/CoreBundle/Event/Subscriber/SQLiteCascadeDeleteSubscriber.php +++ b/src/Wallabag/CoreBundle/Event/Subscriber/SQLiteCascadeDeleteSubscriber.php @@ -40,7 +40,7 @@ class SQLiteCascadeDeleteSubscriber implements EventSubscriber */ public function preRemove(LifecycleEventArgs $args) { - $entity = $args->getEntity(); + $entity = $args->getObject(); if (!$this->doctrine->getConnection()->getDatabasePlatform() instanceof SqlitePlatform || !$entity instanceof Entry) { return;