2015-09-29 14:31:52 +02:00
|
|
|
<?php
|
|
|
|
|
2024-02-19 01:30:12 +01:00
|
|
|
namespace Wallabag\Entity\Api;
|
2015-09-29 14:31:52 +02:00
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
2015-12-22 10:16:34 +01:00
|
|
|
use FOS\OAuthServerBundle\Entity\RefreshToken as BaseRefreshToken;
|
2015-09-29 14:31:52 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @ORM\Table("oauth2_refresh_tokens")
|
|
|
|
* @ORM\Entity
|
|
|
|
*/
|
|
|
|
class RefreshToken extends BaseRefreshToken
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @ORM\Id
|
|
|
|
* @ORM\Column(type="integer")
|
|
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
|
|
*/
|
|
|
|
protected $id;
|
|
|
|
|
|
|
|
/**
|
2024-02-19 01:30:12 +01:00
|
|
|
* @ORM\ManyToOne(targetEntity="Wallabag\Entity\Api\Client", inversedBy="refreshTokens")
|
2015-09-29 14:31:52 +02:00
|
|
|
* @ORM\JoinColumn(nullable=false)
|
|
|
|
*/
|
|
|
|
protected $client;
|
|
|
|
|
|
|
|
/**
|
2024-02-19 01:30:12 +01:00
|
|
|
* @ORM\ManyToOne(targetEntity="Wallabag\Entity\User")
|
2019-05-10 16:49:19 +02:00
|
|
|
* @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
|
2015-09-29 14:31:52 +02:00
|
|
|
*/
|
|
|
|
protected $user;
|
|
|
|
}
|