3 namespace Wallabag\ApiBundle\Entity
;
5 use Doctrine\ORM\Mapping
as ORM
;
6 use FOS\OAuthServerBundle\Entity\Client
as BaseClient
;
7 use Wallabag\UserBundle\Entity\User
;
10 * @ORM\Table("oauth2_clients")
13 class Client
extends BaseClient
17 * @ORM\Column(type="integer")
18 * @ORM\GeneratedValue(strategy="AUTO")
25 * @ORM\Column(name="name", type="text", nullable=false)
30 * @ORM\OneToMany(targetEntity="RefreshToken", mappedBy="client", cascade={"remove"})
32 protected $refreshTokens;
35 * @ORM\OneToMany(targetEntity="AccessToken", mappedBy="client", cascade={"remove"})
37 protected $accessTokens;
40 * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="clients")
44 public function __construct(User
$user)
46 parent
::__construct();
55 public function getName()
67 public function setName($name)
77 public function getUser()