src/Entity/Product/CustomerNoteProduct.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Product;
  3. use App\Entity\User;
  4. use App\Repository\Product\CustomerNoteProductRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCustomerNoteProductRepository::class)]
  7. class CustomerNoteProduct
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne]
  14.     private ?User $user null;
  15.     #[ORM\ManyToOne(inversedBy'customerNotes')]
  16.     private ?Product $product null;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getUser(): ?User
  22.     {
  23.         return $this->user;
  24.     }
  25.     public function setUser(?User $user): static
  26.     {
  27.         $this->user $user;
  28.         return $this;
  29.     }
  30.     public function getProduct(): ?Product
  31.     {
  32.         return $this->product;
  33.     }
  34.     public function setProduct(?Product $product): static
  35.     {
  36.         $this->product $product;
  37.         return $this;
  38.     }
  39. }