You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ImageTrait.php 488B

2 yıl önce
1234567891011121314151617181920212223242526
  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. }