]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #2411 from wallabag/fix-entities
authorNicolas LÅ“uillet <nicolas@loeuillet.org>
Mon, 10 Oct 2016 06:02:25 +0000 (08:02 +0200)
committerGitHub <noreply@github.com>
Mon, 10 Oct 2016 06:02:25 +0000 (08:02 +0200)
Fix entities definition

src/Wallabag/ApiBundle/Entity/AccessToken.php
src/Wallabag/ApiBundle/Entity/RefreshToken.php

index 2ff63a83e4ca9e37ff1e5bd68051b86a2c0c636e..c09a0c803a44467b7b62f241c2fca65cf54b2b39 100644 (file)
@@ -19,7 +19,7 @@ class AccessToken extends BaseAccessToken
     protected $id;
 
     /**
-     * @ORM\ManyToOne(targetEntity="Client")
+     * @ORM\ManyToOne(targetEntity="Client", inversedBy="accessTokens")
      * @ORM\JoinColumn(nullable=false)
      */
     protected $client;
index 6d0cab688f9e182a8c32531d2d1dff3b0ff19ab9..822a02d8d5753b84baedcadb660f2c0f2636c758 100644 (file)
@@ -19,7 +19,7 @@ class RefreshToken extends BaseRefreshToken
     protected $id;
 
     /**
-     * @ORM\ManyToOne(targetEntity="Client")
+     * @ORM\ManyToOne(targetEntity="Client", inversedBy="refreshTokens")
      * @ORM\JoinColumn(nullable=false)
      */
     protected $client;