aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Entity/AuthCode.php
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/AuthCode.php
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/AuthCode.php')
-rw-r--r--src/Wallabag/ApiBundle/Entity/AuthCode.php1
1 files changed, 1 insertions, 0 deletions
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}