Commit 831b718e authored by Peter Čeklovský's avatar Peter Čeklovský
Browse files

Orders

parent a5298428
......@@ -17,10 +17,6 @@ class OrderItem
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $id_order;
/**
* @ORM\Column(type="string", length=255)
......@@ -47,22 +43,22 @@ class OrderItem
*/
private $sum_total;
/**
* @ORM\ManyToOne(targetEntity=Orders::class)
* @ORM\JoinColumn(nullable=false)
*/
private $orderid;
public function getId(): ?int
{
return $this->id;
}
public function getIdOrder(): ?int
{
return $this->id_order;
}
public function setIdOrder(int $id_order): self
{
$this->id_order = $id_order;
return $this;
}
public function getName(): ?string
{
......@@ -123,4 +119,20 @@ class OrderItem
return $this;
}
public function getOrderid(): ?Orders
{
return $this->orderid;
}
public function setOrderid(?Orders $orderid): self
{
$this->orderid = $orderid;
return $this;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment