aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Entity/Client.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-08 13:31:54 +0200
committerGitHub <noreply@github.com>2016-10-08 13:31:54 +0200
commit93a95c09bf7ab389de623f6cda01dfc295aa6b74 (patch)
treedfd6ab58fb234b2cc795eca7f3f5951cd4e2aea2 /src/Wallabag/ApiBundle/Entity/Client.php
parent4ad6f5878a7e7ab6359151b049fb49b9dd2c78ec (diff)
parentee32248f43baef7e995c9e420cd00a137e626cf0 (diff)
downloadwallabag-93a95c09bf7ab389de623f6cda01dfc295aa6b74.tar.gz
wallabag-93a95c09bf7ab389de623f6cda01dfc295aa6b74.tar.zst
wallabag-93a95c09bf7ab389de623f6cda01dfc295aa6b74.zip
Merge pull request #2351 from wallabag/fix-api-client-deletion
Changed relation between API client and refresh token
Diffstat (limited to 'src/Wallabag/ApiBundle/Entity/Client.php')
-rw-r--r--src/Wallabag/ApiBundle/Entity/Client.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Entity/Client.php b/src/Wallabag/ApiBundle/Entity/Client.php
index 3e2f491c..f7898ac8 100644
--- a/src/Wallabag/ApiBundle/Entity/Client.php
+++ b/src/Wallabag/ApiBundle/Entity/Client.php
@@ -25,6 +25,16 @@ class Client extends BaseClient
25 */ 25 */
26 protected $name; 26 protected $name;
27 27
28 /**
29 * @ORM\OneToMany(targetEntity="RefreshToken", mappedBy="client", cascade={"remove"})
30 */
31 protected $refreshTokens;
32
33 /**
34 * @ORM\OneToMany(targetEntity="AccessToken", mappedBy="client", cascade={"remove"})
35 */
36 protected $accessTokens;
37
28 public function __construct() 38 public function __construct()
29 { 39 {
30 parent::__construct(); 40 parent::__construct();