src/Entity/CustomerEducation.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CustomerEducationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * AI document extraction education for a customer (project owner).
  8.  * Mirrors SupplierEducation but is attached to ProjectOwner.
  9.  *
  10.  * NOTE: customer FK currently targets the (deprecated) ProjectOwner entity.
  11.  * When ProjectOwner is replaced by a dedicated Customer entity, repoint this FK.
  12.  *
  13.  * @ORM\Entity(repositoryClass=CustomerEducationRepository::class)
  14.  */
  15. class CustomerEducation
  16. {
  17.     /**
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue
  20.      * @ORM\Column(type="integer")
  21.      * @Groups({
  22.      *     "customer_education@core",
  23.      *     "project_owner@educations"
  24.      * })
  25.      */
  26.     private $id;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=ProjectOwner::class, inversedBy="customer_educations")
  29.      * @ORM\JoinColumn(nullable=false)
  30.      */
  31.     private $customer;
  32.     /**
  33.      * @ORM\Column(type="text")
  34.      * @Groups({
  35.      *     "customer_education@core",
  36.      *     "project_owner@educations"
  37.      * })
  38.      */
  39.     private $prompt;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getCustomer(): ?ProjectOwner
  45.     {
  46.         return $this->customer;
  47.     }
  48.     public function setCustomer(?ProjectOwner $customer): self
  49.     {
  50.         $this->customer $customer;
  51.         return $this;
  52.     }
  53.     public function getPrompt(): ?string
  54.     {
  55.         return $this->prompt;
  56.     }
  57.     public function setPrompt(string $prompt): self
  58.     {
  59.         $this->prompt $prompt;
  60.         return $this;
  61.     }
  62. }