Changed relation between API client and refresh token

Fix #2350
This commit is contained in:
Nicolas Lœuillet 2016-10-03 21:39:01 +02:00
parent a3cc0dd0bf
commit b0da721a52
No known key found for this signature in database
GPG key ID: 5656BE27E1E34D0A

View file

@ -25,6 +25,11 @@ class Client extends BaseClient
*/ */
protected $name; protected $name;
/**
* @ORM\OneToMany(targetEntity="RefreshToken", mappedBy="client", cascade={"remove"})
*/
protected $refreshTokens;
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();