]>
Commit | Line | Data |
---|---|---|
fcb1fba5 NL |
1 | <?php |
2 | ||
3 | namespace Wallabag\ApiBundle\Entity; | |
4 | ||
fcb1fba5 | 5 | use Doctrine\ORM\Mapping as ORM; |
619cc453 | 6 | use FOS\OAuthServerBundle\Entity\AccessToken as BaseAccessToken; |
fcb1fba5 NL |
7 | |
8 | /** | |
9 | * @ORM\Table("oauth2_access_tokens") | |
10 | * @ORM\Entity | |
11 | */ | |
12 | class AccessToken extends BaseAccessToken | |
13 | { | |
14 | /** | |
15 | * @ORM\Id | |
16 | * @ORM\Column(type="integer") | |
17 | * @ORM\GeneratedValue(strategy="AUTO") | |
18 | */ | |
19 | protected $id; | |
20 | ||
21 | /** | |
8dc4cd0f | 22 | * @ORM\ManyToOne(targetEntity="Client", inversedBy="accessTokens") |
fcb1fba5 NL |
23 | * @ORM\JoinColumn(nullable=false) |
24 | */ | |
25 | protected $client; | |
26 | ||
27 | /** | |
1210dae1 | 28 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User") |
fcb1fba5 NL |
29 | */ |
30 | protected $user; | |
31 | } |