diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-03 21:39:01 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-03 21:39:01 +0200 |
commit | b0da721a5238ece3056ae7af760e9455f7af3e11 (patch) | |
tree | 58a85721551374195e5f98a9ae26fb9480cd18b9 /src/Wallabag/ApiBundle/Entity/Client.php | |
parent | a3cc0dd0bfedf8d77c232eb38e8781b3cf38a048 (diff) | |
download | wallabag-b0da721a5238ece3056ae7af760e9455f7af3e11.tar.gz wallabag-b0da721a5238ece3056ae7af760e9455f7af3e11.tar.zst wallabag-b0da721a5238ece3056ae7af760e9455f7af3e11.zip |
Changed relation between API client and refresh token
Fix #2350
Diffstat (limited to 'src/Wallabag/ApiBundle/Entity/Client.php')
-rw-r--r-- | src/Wallabag/ApiBundle/Entity/Client.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Entity/Client.php b/src/Wallabag/ApiBundle/Entity/Client.php index 3e2f491c..92b2f762 100644 --- a/src/Wallabag/ApiBundle/Entity/Client.php +++ b/src/Wallabag/ApiBundle/Entity/Client.php | |||
@@ -25,6 +25,11 @@ 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 | |||
28 | public function __construct() | 33 | public function __construct() |
29 | { | 34 | { |
30 | parent::__construct(); | 35 | parent::__construct(); |