您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
488B

  1. <?php
  2. namespace Lc\SovBundle\Doctrine\Extension;
  3. use App\Entity\File\File;
  4. use Doctrine\ORM\Mapping as ORM;
  5. trait ImageTrait
  6. {
  7. /**
  8. * @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\File\FileInterface", cascade={"persist", "remove"}, fetch="EAGER")
  9. */
  10. protected $image;
  11. public function getImage(): ?File
  12. {
  13. return $this->image;
  14. }
  15. public function setImage(?File $image): self
  16. {
  17. $this->image = $image;
  18. return $this;
  19. }
  20. }