forked from wallabag/wallabag
Fix getEntity() depreciation
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user