src/Entity/ProductNotes.php line 9
<?phpnamespace App\Entity;use App\Repository\ProductNotesRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ProductNotesRepository::class)]class ProductNotes{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private $id;#[ORM\ManyToOne(targetEntity: Products::class, inversedBy: 'productNotes')]private $product;#[ORM\ManyToOne(targetEntity: Clinics::class, inversedBy: 'productNotes')]private $clinic;#[ORM\ManyToOne(targetEntity: ClinicUsers::class, inversedBy: 'productNotes')]private $clinicUser;#[ORM\Column(type: 'text')]private $note;#[ORM\Column(type: 'datetime')]private $modified;#[ORM\Column(type: 'datetime')]private $created;public function __construct(){$date = new \DateTime("now", new \DateTimeZone('Asia/Dubai'));$this->setModified($date);if ($this->getCreated() == null){$this->setCreated($date);}}public function getId(): ?int{return $this->id;}public function getProduct(): ?Products{return $this->product;}public function setProduct(?Products $product): self{$this->product = $product;return $this;}public function getClinic(): ?Clinics{return $this->clinic;}public function setClinic(?Clinics $clinic): self{$this->clinic = $clinic;return $this;}public function getClinicUser(): ?ClinicUsers{return $this->clinicUser;}public function setClinicUser(?ClinicUsers $clinicUser): self{$this->clinicUser = $clinicUser;return $this;}public function getNote(): ?string{return $this->note;}public function setNote(string $note): self{$this->note = $note;return $this;}public function getModified(): ?\DateTimeInterface{return $this->modified;}public function setModified(\DateTimeInterface $modified): self{$this->modified = $modified;return $this;}public function getCreated(): ?\DateTimeInterface{return $this->created;}public function setCreated(\DateTimeInterface $created): self{$this->created = $created;return $this;}}