src/Entity/ProjectAttachment.php line 16

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. use App\Entity\Traits\ProjectMethodTrait;
  7. /**
  8.  *
  9.  * @ORM\Entity(repositoryClass="App\Repository\ProjectAttachmentRepository")
  10.  * @Vich\Uploadable
  11.  *
  12.  * @author wendell.zheng <wxzheng@ustc.edu.cn>
  13.  */
  14. class ProjectAttachment
  15. {
  16.     use AttachmentTraitProjectMethodTrait;
  17.     const NAME '项目附件';
  18.     /**
  19.      *
  20.      * @ORM\ManyToOne(targetEntity="Project", inversedBy="attachments")
  21.      */
  22.     protected $project;
  23. }