]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/ApiBundle/Entity/AuthCode.php
4d4b09fea7178ac9fed0f1bec0483db96d89d331
[github/wallabag/wallabag.git] / src / Wallabag / ApiBundle / Entity / AuthCode.php
1 <?php
2
3 namespace Wallabag\ApiBundle\Entity;
4
5 use Doctrine\ORM\Mapping as ORM;
6 use FOS\OAuthServerBundle\Entity\AuthCode as BaseAuthCode;
7
8 /**
9 * @ORM\Table("oauth2_auth_codes")
10 * @ORM\Entity
11 */
12 class AuthCode extends BaseAuthCode
13 {
14 /**
15 * @ORM\Id
16 * @ORM\Column(type="integer")
17 * @ORM\GeneratedValue(strategy="AUTO")
18 */
19 protected $id;
20
21 /**
22 * @ORM\ManyToOne(targetEntity="Client")
23 * @ORM\JoinColumn(nullable=false)
24 */
25 protected $client;
26
27 /**
28 * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User")
29 */
30 protected $user;
31 }