]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ApiBundle/Entity/Client.php
Ensure access_token are removed
[github/wallabag/wallabag.git] / src / Wallabag / ApiBundle / Entity / Client.php
index 92b2f762d32f7d89d9d1b4501100961a36c07ffc..f7898ac82852292835175581a2ea0b797738ed1d 100644 (file)
@@ -30,6 +30,11 @@ class Client extends BaseClient
      */
     protected $refreshTokens;
 
+    /**
+     * @ORM\OneToMany(targetEntity="AccessToken", mappedBy="client", cascade={"remove"})
+     */
+    protected $accessTokens;
+
     public function __construct()
     {
         parent::__construct();