src/Entity/NoticeAttachment.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  5. use App\Entity\Traits\AttachmentTrait;
  6. /**
  7.  *
  8.  * @ORM\Entity(repositoryClass="App\Repository\NoticeAttachmentRepository")
  9.  * @Vich\Uploadable
  10.  *
  11.  * @author wendell.zheng <wxzheng@ustc.edu.cn>
  12.  */
  13. class NoticeAttachment
  14. {
  15.     use AttachmentTrait;
  16.     const NAME '้€š็Ÿฅ้™„ไปถ';
  17.     /**
  18.      *
  19.      * @ORM\ManyToOne(targetEntity="Notice", inversedBy="attachments")
  20.      */
  21.     protected $notice;
  22.     public function getNotice(): Notice
  23.     {
  24.         return $this->notice;
  25.     }
  26.     public function setNotice(Notice $notice)
  27.     {
  28.         $this->notice $notice;
  29.     }
  30. }