mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 23:56:29 +03:00
32 lines
580 B
PHP
32 lines
580 B
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use FOS\OAuthServerBundle\Entity\AccessToken as BaseAccessToken;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
*/
|
|
class AccessToken extends BaseAccessToken
|
|
{
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue
|
|
* @ORM\Column(type="integer")
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="App\Entity\Client")
|
|
* @ORM\JoinColumn(nullable=false)
|
|
*/
|
|
protected $client;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="App\Entity\User")
|
|
* @ORM\JoinColumn(onDelete="CASCADE")
|
|
*/
|
|
protected $user;
|
|
}
|