<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use App\Entity\Traits\AttachmentTrait;
/**
*
* @ORM\Entity(repositoryClass="App\Repository\NoticeAttachmentRepository")
* @Vich\Uploadable
*
* @author wendell.zheng <wxzheng@ustc.edu.cn>
*/
class NoticeAttachment
{
use AttachmentTrait;
const NAME = '้็ฅ้ไปถ';
/**
*
* @ORM\ManyToOne(targetEntity="Notice", inversedBy="attachments")
*/
protected $notice;
public function getNotice(): Notice
{
return $this->notice;
}
public function setNotice(Notice $notice)
{
$this->notice = $notice;
}
}