]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ApiBundle/Entity/Client.php
Changed relation between API client and refresh token
[github/wallabag/wallabag.git] / 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();