]> 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 3e8b54fe1b66283cf741ad0d98dcd491fb369b2f..92b2f762d32f7d89d9d1b4501100961a36c07ffc 100644 (file)
@@ -21,10 +21,15 @@ class Client extends BaseClient
     /**
      * @var string
      *
-     * @ORM\Column(name="title", type="text", nullable=true)
+     * @ORM\Column(name="name", type="text", nullable=true)
      */
     protected $name;
 
+    /**
+     * @ORM\OneToMany(targetEntity="RefreshToken", mappedBy="client", cascade={"remove"})
+     */
+    protected $refreshTokens;
+
     public function __construct()
     {
         parent::__construct();