Pārlūkot izejas kodu

ImageTrait

develop
Guillaume pirms 2 gadiem
vecāks
revīzija
8a64019be4
1 mainītis faili ar 26 papildinājumiem un 0 dzēšanām
  1. +26
    -0
      Doctrine/Extension/ImageTrait.php

+ 26
- 0
Doctrine/Extension/ImageTrait.php Parādīt failu

@@ -0,0 +1,26 @@
<?php

namespace Lc\SovBundle\Doctrine\Extension;

use App\Entity\File\File;
use Doctrine\ORM\Mapping as ORM;

trait ImageTrait
{
/**
* @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\File\FileInterface", cascade={"persist", "remove"}, fetch="EAGER")
*/
protected $image;

public function getImage(): ?File
{
return $this->image;
}

public function setImage(?File $image): self
{
$this->image = $image;

return $this;
}
}

Notiek ielāde…
Atcelt
Saglabāt