Merge pull request #2411 from wallabag/fix-entities

Fix entities definition
This commit is contained in:
Nicolas Lœuillet 2016-10-10 08:02:25 +02:00 committed by GitHub
commit 2a5ff7f554
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ class AccessToken extends BaseAccessToken
protected $id; protected $id;
/** /**
* @ORM\ManyToOne(targetEntity="Client") * @ORM\ManyToOne(targetEntity="Client", inversedBy="accessTokens")
* @ORM\JoinColumn(nullable=false) * @ORM\JoinColumn(nullable=false)
*/ */
protected $client; protected $client;

View file

@ -19,7 +19,7 @@ class RefreshToken extends BaseRefreshToken
protected $id; protected $id;
/** /**
* @ORM\ManyToOne(targetEntity="Client") * @ORM\ManyToOne(targetEntity="Client", inversedBy="refreshTokens")
* @ORM\JoinColumn(nullable=false) * @ORM\JoinColumn(nullable=false)
*/ */
protected $client; protected $client;