diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-05-13 06:41:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 06:41:16 +0200 |
commit | 9e2194e9cb55acf0a715e36c33f9f9d8689e0761 (patch) | |
tree | 33dd72955f9d7427024869f3c3d4b2dac0d85c7a /src/Wallabag/ApiBundle/Entity | |
parent | de1162b91a205a98a3f8ed01bd80285793b18380 (diff) | |
parent | 754bf12e6724b1cd6c6d2da85a377cd96865131d (diff) | |
download | wallabag-9e2194e9cb55acf0a715e36c33f9f9d8689e0761.tar.gz wallabag-9e2194e9cb55acf0a715e36c33f9f9d8689e0761.tar.zst wallabag-9e2194e9cb55acf0a715e36c33f9f9d8689e0761.zip |
Merge pull request #3956 from wallabag/fix/delete-cascade-oauth2
Cascade delete on oauth2 table when deleting a user
Diffstat (limited to 'src/Wallabag/ApiBundle/Entity')
-rw-r--r-- | src/Wallabag/ApiBundle/Entity/AccessToken.php | 1 | ||||
-rw-r--r-- | src/Wallabag/ApiBundle/Entity/AuthCode.php | 1 | ||||
-rw-r--r-- | src/Wallabag/ApiBundle/Entity/RefreshToken.php | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Entity/AccessToken.php b/src/Wallabag/ApiBundle/Entity/AccessToken.php index 5e4099dd..98e0af3e 100644 --- a/src/Wallabag/ApiBundle/Entity/AccessToken.php +++ b/src/Wallabag/ApiBundle/Entity/AccessToken.php | |||
@@ -42,6 +42,7 @@ class AccessToken extends BaseAccessToken | |||
42 | 42 | ||
43 | /** | 43 | /** |
44 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User") | 44 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User") |
45 | * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE") | ||
45 | */ | 46 | */ |
46 | protected $user; | 47 | protected $user; |
47 | } | 48 | } |
diff --git a/src/Wallabag/ApiBundle/Entity/AuthCode.php b/src/Wallabag/ApiBundle/Entity/AuthCode.php index 5fa205ac..7c9c8539 100644 --- a/src/Wallabag/ApiBundle/Entity/AuthCode.php +++ b/src/Wallabag/ApiBundle/Entity/AuthCode.php | |||
@@ -42,6 +42,7 @@ class AuthCode extends BaseAuthCode | |||
42 | 42 | ||
43 | /** | 43 | /** |
44 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User") | 44 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User") |
45 | * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE") | ||
45 | */ | 46 | */ |
46 | protected $user; | 47 | protected $user; |
47 | } | 48 | } |
diff --git a/src/Wallabag/ApiBundle/Entity/RefreshToken.php b/src/Wallabag/ApiBundle/Entity/RefreshToken.php index dd8e9c63..55a507e1 100644 --- a/src/Wallabag/ApiBundle/Entity/RefreshToken.php +++ b/src/Wallabag/ApiBundle/Entity/RefreshToken.php | |||
@@ -42,6 +42,7 @@ class RefreshToken extends BaseRefreshToken | |||
42 | 42 | ||
43 | /** | 43 | /** |
44 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User") | 44 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User") |
45 | * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE") | ||
45 | */ | 46 | */ |
46 | protected $user; | 47 | protected $user; |
47 | } | 48 | } |