<?php
namespace App\Entity;
use App\Repository\CustomerContentAboutUsImageRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CustomerContentAboutUsImageRepository::class)]
class CustomerContentAboutUsImage
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'customerContentAboutUsImages')]
#[ORM\JoinColumn(nullable: false)]
private ?CustomerContentAboutUs $customerContentAboutUs = null;
#[ORM\ManyToOne(cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(nullable: false)]
private ?Image $image = null;
public function getId(): ?int
{
return $this->id;
}
public function getCustomerContentAboutUs(): ?CustomerContentAboutUs
{
return $this->customerContentAboutUs;
}
public function setCustomerContentAboutUs(?CustomerContentAboutUs $customerContentAboutUs): self
{
$this->customerContentAboutUs = $customerContentAboutUs;
return $this;
}
public function getImage(): ?Image
{
return $this->image;
}
public function setImage(?Image $image): self
{
$this->image = $image;
return $this;
}
}