src/Entity/BatchCollegeAttachment.php line 17

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\CollegeTrait;
  7. use App\Entity\Traits\BatchMethodTrait;
  8. /**
  9.  *
  10.  * @ORM\Entity(repositoryClass="App\Repository\BatchCollegeAttachmentRepository")
  11.  * @Vich\Uploadable
  12.  *
  13.  * @author wendell.zheng <wxzheng@ustc.edu.cn>
  14.  */
  15. class BatchCollegeAttachment
  16. {
  17.     use AttachmentTraitCollegeTraitBatchMethodTrait;
  18.     const NAME '学院附件';
  19.     /**
  20.      *
  21.      * @ORM\ManyToOne(targetEntity="Batch", inversedBy="collegeAttachments")
  22.      */
  23.     protected $batch;
  24. }