<?phpnamespace App\Entity;use App\Repository\DetailRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=DetailRepository::class) */class Detail{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Order::class, inversedBy="details") * @ORM\JoinColumn(nullable=false) */ private $orderId; /** * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="orders", cascade={"persist"}) * @ORM\JoinColumn(nullable=false) */ private $product; /** * @ORM\Column(type="float") */ private $htPrice; /** * @ORM\Column(type="float") */ private $price; /** * @ORM\Column(type="smallint") */ private $qty; public function getId(): ?int { return $this->id; } public function getOrderId(): ?Order { return $this->orderId; } public function setOrderId(?Order $orderId): self { $this->orderId = $orderId; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getHtPrice(): ?float { return $this->htPrice; } public function setHtPrice(float $htPrice): self { $this->htPrice = $htPrice; return $this; } public function getPrice(): ?float { return $this->price; } public function setPrice(float $price): self { $this->price = $price; return $this; } public function getQty(): ?int { return $this->qty; } public function setQty(int $qty): self { $this->qty = $qty; return $this; }}