aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Entity
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-05-10 16:49:19 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-05-10 20:36:45 +0200
commit637f0df9760b50b56c8ffb200719907032fdd885 (patch)
tree57da5fc387df650b73d6f2770d5463de06709798 /src/Wallabag/ApiBundle/Entity
parentde1162b91a205a98a3f8ed01bd80285793b18380 (diff)
downloadwallabag-637f0df9760b50b56c8ffb200719907032fdd885.tar.gz
wallabag-637f0df9760b50b56c8ffb200719907032fdd885.tar.zst
wallabag-637f0df9760b50b56c8ffb200719907032fdd885.zip
Cascade delete on oauth2 table when deleting a user
Diffstat (limited to 'src/Wallabag/ApiBundle/Entity')
-rw-r--r--src/Wallabag/ApiBundle/Entity/AccessToken.php1
-rw-r--r--src/Wallabag/ApiBundle/Entity/AuthCode.php1
-rw-r--r--src/Wallabag/ApiBundle/Entity/RefreshToken.php1
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}