src/Entity/EcoCustomers.php line 9

Open in your IDE?
  1. <?php
  2. namespace Acme\SudcmsBundle\Entity;
  3. use Acme\SudcmsBundle\Repository\EcoCustomersRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassEcoCustomersRepository::class)]
  6. class EcoCustomers {
  7.     #[ORM\Id]
  8.     #[ORM\GeneratedValue]
  9.     #[ORM\Column(type'integer')]
  10.     private $id;
  11.     #[ORM\Column(type'datetime')]
  12.     private $cust_creation_date;
  13.     #[ORM\Column(type'integer')]
  14.     private $odyssee_reference;
  15.     #[ORM\ManyToOne(targetEntityAuthUser::class, cascade: ['persist''remove'], inversedBy'customer')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private $authUserId;
  18.     public function __construct() {
  19.     }
  20.     public function getId(): ?int {
  21.         return $this->id;
  22.     }
  23.     public function getCustCreationDate(): ?\DateTimeInterface {
  24.         return $this->cust_creation_date;
  25.     }
  26.     public function setCustCreationDate(\DateTimeInterface $cust_creation_date): self {
  27.         $this->cust_creation_date $cust_creation_date;
  28.         return $this;
  29.     }
  30.     public function getOdysseeReference(): ?string {
  31.         return $this->odyssee_reference;
  32.     }
  33.     public function setOdysseeReference(string $odyssee_reference): self {
  34.         $this->odyssee_reference $odyssee_reference;
  35.         return $this;
  36.     }
  37.     public function getAuthUserId(): ?AuthUser {
  38.         return $this->authUserId;
  39.     }
  40.     public function setAuthUserId(AuthUser $authUserId): self {
  41.         $this->authUserId $authUserId;
  42.         return $this;
  43.     }
  44. }