mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +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)
|
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…
Add table
Add a link
Reference in a new issue