]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix entities definition 2411/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 9 Oct 2016 18:51:37 +0000 (20:51 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 9 Oct 2016 18:51:37 +0000 (20:51 +0200)
As per Doctrine said in the debug tool bar:

- The field Wallabag\ApiBundle\Entity\Client#refreshTokens is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Wallabag\ApiBundle\Entity\RefreshToken#client does not contain the required 'inversedBy="refreshTokens"' attribute.

- The field Wallabag\ApiBundle\Entity\Client#accessTokens is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Wallabag\ApiBundle\Entity\AccessToken#client does not contain the required 'inversedBy="accessTokens"' attribute.

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;