|
1234567891011121314151617181920212223242526 |
- <?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;
- }
- }
|