1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-10 18:51:02 +00:00
wallabag/src/Entity/Api/AuthCode.php

33 lines
686 B
PHP
Raw Normal View History

<?php
2024-02-19 01:30:12 +01:00
namespace Wallabag\Entity\Api;
use Doctrine\ORM\Mapping as ORM;
use FOS\OAuthServerBundle\Entity\AuthCode as BaseAuthCode;
/**
* @ORM\Table("oauth2_auth_codes")
* @ORM\Entity
*/
class AuthCode extends BaseAuthCode
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
2024-02-19 01:30:12 +01:00
* @ORM\ManyToOne(targetEntity="Wallabag\Entity\Api\Client")
* @ORM\JoinColumn(nullable=false)
*/
protected $client;
/**
2024-02-19 01:30:12 +01:00
* @ORM\ManyToOne(targetEntity="Wallabag\Entity\User")
* @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
*/
protected $user;
}