3 namespace Wallabag\ApiBundle\Entity
;
5 use Doctrine\ORM\Mapping
as ORM
;
6 use FOS\OAuthServerBundle\Entity\Client
as BaseClient
;
9 * @ORM\Table("oauth2_clients")
12 class Client
extends BaseClient
16 * @ORM\Column(type="integer")
17 * @ORM\GeneratedValue(strategy="AUTO")
24 * @ORM\Column(name="name", type="text", nullable=true)
29 * @ORM\OneToMany(targetEntity="RefreshToken", mappedBy="client", cascade={"remove"})
31 protected $refreshTokens;
34 * @ORM\OneToMany(targetEntity="AccessToken", mappedBy="client", cascade={"remove"})
36 protected $accessTokens;
38 public function __construct()
40 parent
::__construct();
48 public function getName()
60 public function setName($name)