Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
src
/
Entity
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/src/Entity/CommandProduct.php
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\CommandProductRepository") */ class CommandProduct { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer") */ private $quantity; /** * @ORM\ManyToOne(targetEntity="App\Entity\Command", inversedBy="commandProduct") * @ORM\JoinColumn(nullable=false) */ private $command; /** * @ORM\ManyToOne(targetEntity="App\Entity\Product", inversedBy="commandProduct") * @ORM\JoinColumn(nullable=false) */ private $product; /** * @ORM\Column(type="decimal", precision=8, scale=2) */ private $price; public function getId(): ?int { return $this->id; } public function getQuantity(): ?int { return $this->quantity; } public function setQuantity(int $quantity): self { $this->quantity = $quantity; return $this; } public function getCommand(): ?Command { return $this->command; } public function setCommand(?Command $command): self { $this->command = $command; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getPrice() { return $this->price; } public function setPrice($price): self { $this->price = $price; return $this; } }