2015-09-29 12:31:52 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Wallabag\ApiBundle\Entity;
|
|
|
|
|
|
|
|
use FOS\OAuthServerBundle\Entity\AuthCode as BaseAuthCode;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ORM\Table("oauth2_auth_codes")
|
|
|
|
* @ORM\Entity
|
|
|
|
*/
|
|
|
|
class AuthCode extends BaseAuthCode
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @ORM\Id
|
|
|
|
* @ORM\Column(type="integer")
|
|
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
|
|
*/
|
|
|
|
protected $id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ORM\ManyToOne(targetEntity="Client")
|
|
|
|
* @ORM\JoinColumn(nullable=false)
|
|
|
|
*/
|
|
|
|
protected $client;
|
|
|
|
|
|
|
|
/**
|
2015-10-02 12:51:41 +00:00
|
|
|
* @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User")
|
2015-09-29 12:31:52 +00:00
|
|
|
*/
|
|
|
|
protected $user;
|
|
|
|
}
|