mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-01 18:27:51 +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)
|
public function preRemove(LifecycleEventArgs $args)
|
||||||
{
|
{
|
||||||
$entity = $args->getEntity();
|
$entity = $args->getObject();
|
||||||
if (!$this->doctrine->getConnection()->getDatabasePlatform() instanceof SqlitePlatform
|
if (!$this->doctrine->getConnection()->getDatabasePlatform() instanceof SqlitePlatform
|
||||||
|| !$entity instanceof Entry) {
|
|| !$entity instanceof Entry) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user