mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-23 08:06:33 +00:00
Fix getEntity() depreciation
This commit is contained in:
parent
4846dd00c3
commit
0cbd0ce28a
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue