src/Entity/AdMappingCustomer.php line 12
<?phpnamespace App\Entity;use App\Enum\CustomerClass;use App\Repository\AdMappingCustomerRepository;use Doctrine\ORM\Mapping as ORM;use Gedmo\Timestampable\Traits\TimestampableEntity;#[ORM\Entity(repositoryClass: AdMappingCustomerRepository::class)]#[ORM\UniqueConstraint(name: 'unique_admapping_customer_class_dates', columns: ['ad_mapping_id', 'customer_id', 'class', 'effective_start_date', 'effective_end_date'])]class AdMappingCustomer{use TimestampableEntity;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'adMappingCustomers')]private ?AdMapping $adMapping = null;#[ORM\Column(length: 255, nullable: true)]private ?string $customer_id = null;#[ORM\Column(enumType: CustomerClass::class, nullable: true)]private ?CustomerClass $class = null;#[ORM\Column(type: 'date', nullable: true)]private ?\DateTimeInterface $effectiveStartDate = null;#[ORM\Column(type: 'date', nullable: true)]private ?\DateTimeInterface $effectiveEndDate = null;public function getId(): ?int{return $this->id;}public function getAdMapping(): ?AdMapping{return $this->adMapping;}public function setAdMapping(?AdMapping $adMapping): static{$this->adMapping = $adMapping;return $this;}public function getCustomerId(): ?string{return $this->customer_id;}public function setCustomerId(?string $customer_id): static{$this->customer_id = $customer_id;return $this;}public function getClass(): ?CustomerClass{return $this->class;}public function setClass(?CustomerClass $class): static{$this->class = $class;return $this;}public function getEffectiveStartDate(): ?\DateTimeInterface{return $this->effectiveStartDate;}public function setEffectiveStartDate(?\DateTimeInterface $effectiveStartDate): static{$this->effectiveStartDate = $effectiveStartDate;return $this;}public function getEffectiveEndDate(): ?\DateTimeInterface{return $this->effectiveEndDate;}public function setEffectiveEndDate(?\DateTimeInterface $effectiveEndDate): static{$this->effectiveEndDate = $effectiveEndDate;return $this;}//to stringpublic function __toString(){return (string)$this->getCustomerId();}}