<?php
namespace App\Entity;
use App\Repository\ArticleImagesRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ArticleImagesRepository::class)
*/
class ArticleImages
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Article::class, inversedBy="articleImages")
* @ORM\JoinColumn(nullable=false)
*/
private $article;
/**
* @ORM\Column(type="string", length=255)
*/
private $image;
public function getId(): ?int
{
return $this->id;
}
public function getArticle(): ?Article
{
return $this->article;
}
public function setArticle(?Article $article): self
{
$this->article = $article;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(string $image): self
{
$this->image = $image;
return $this;
}
}