src/Entity/AreaDirectorToCustomer.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AreaDirectorToCustomerRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Timestampable\Traits\TimestampableEntity;
  6. #[ORM\Entity(repositoryClassAreaDirectorToCustomerRepository::class)]
  7. class AreaDirectorToCustomer
  8. {
  9.     use TimestampableEntity;
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $customerID null;
  16.     #[ORM\ManyToOne(fetch"EAGER")]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?User $user null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getCustomerID(): ?string
  24.     {
  25.         return $this->customerID;
  26.     }
  27.     public function setCustomerID(string $customerID): self
  28.     {
  29.         $this->customerID $customerID;
  30.         return $this;
  31.     }
  32.     public function getUser(): ?User
  33.     {
  34.         return $this->user;
  35.     }
  36.     public function setUser(?User $user): self
  37.     {
  38.         $this->user $user;
  39.         return $this;
  40.     }
  41. }