Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Peter Čeklovský
zadanie
Commits
831b718e
Commit
831b718e
authored
Mar 23, 2021
by
Peter Čeklovský
Browse files
Orders
parent
a5298428
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Entity/OrderItem.php
View file @
831b718e
...
...
@@ -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
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment