]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Changed relation between API client and refresh token
authorNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 3 Oct 2016 19:39:01 +0000 (21:39 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 3 Oct 2016 19:39:01 +0000 (21:39 +0200)
Fix #2350

src/Wallabag/ApiBundle/Entity/Client.php

index 3e2f491c012ad94e43609dad08ce4ea6b0a335ed..92b2f762d32f7d89d9d1b4501100961a36c07ffc 100644 (file)
@@ -25,6 +25,11 @@ class Client extends BaseClient
      */
     protected $name;
 
+    /**
+     * @ORM\OneToMany(targetEntity="RefreshToken", mappedBy="client", cascade={"remove"})
+     */
+    protected $refreshTokens;
+
     public function __construct()
     {
         parent::__construct();