mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-30 01:09:58 +01:00
Fix getEntity() depreciation
This commit is contained in:
parent
4846dd00c3
commit
0cbd0ce28a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user