<?php
namespace App\Entity;
use App\Repository\CustomerEducationRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* AI document extraction education for a customer (project owner).
* Mirrors SupplierEducation but is attached to ProjectOwner.
*
* NOTE: customer FK currently targets the (deprecated) ProjectOwner entity.
* When ProjectOwner is replaced by a dedicated Customer entity, repoint this FK.
*
* @ORM\Entity(repositoryClass=CustomerEducationRepository::class)
*/
class CustomerEducation
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({
* "customer_education@core",
* "project_owner@educations"
* })
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=ProjectOwner::class, inversedBy="customer_educations")
* @ORM\JoinColumn(nullable=false)
*/
private $customer;
/**
* @ORM\Column(type="text")
* @Groups({
* "customer_education@core",
* "project_owner@educations"
* })
*/
private $prompt;
public function getId(): ?int
{
return $this->id;
}
public function getCustomer(): ?ProjectOwner
{
return $this->customer;
}
public function setCustomer(?ProjectOwner $customer): self
{
$this->customer = $customer;
return $this;
}
public function getPrompt(): ?string
{
return $this->prompt;
}
public function setPrompt(string $prompt): self
{
$this->prompt = $prompt;
return $this;
}
}