Loading src/Entity/News.php +16 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,10 @@ class News #[ORM\JoinColumn(nullable: false)] private ?Seo $seo = null; #[ORM\OneToOne(cascade: ['persist', 'remove'])] #[ORM\JoinColumn(nullable: false)] private ?File $file = null; public function __construct() { $this->newsCategories = new ArrayCollection(); Loading Loading @@ -244,4 +248,16 @@ class News return $this; } public function getFile(): ?File { return $this->file; } public function setFile(File $file): static { $this->file = $file; return $this; } } Loading
src/Entity/News.php +16 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,10 @@ class News #[ORM\JoinColumn(nullable: false)] private ?Seo $seo = null; #[ORM\OneToOne(cascade: ['persist', 'remove'])] #[ORM\JoinColumn(nullable: false)] private ?File $file = null; public function __construct() { $this->newsCategories = new ArrayCollection(); Loading Loading @@ -244,4 +248,16 @@ class News return $this; } public function getFile(): ?File { return $this->file; } public function setFile(File $file): static { $this->file = $file; return $this; } }