{
"data": {
"id": 1,
"amount": 1650,
"products": [
{
"id": 1,
"price": 150,
"count": 5,
"name": "Кофе"
},
{
"id": 2,
"price": 180,
"count": 5,
"name": "Бургер"
}
],
"status": 1,
"order_sn": "DS12345",
"create_at": "2019-10-01T21:37:21+00:00"
},
"code": 0
}
/**
* @ORM\Entity(repositoryClass="App\Repository\OrderItemRepository")
* @ORM\Table(name="order_items")
*/
class OrderItem
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var string
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @var float
* @ORM\Column(name="price", type="decimal", precision=15, scale=2)
*/
private $price = 0.0;
/**
* @var int
* @ORM\Column(name="count", type="integer")
*/
private $count = 1;
}
depends_on:
db:
condition: service_healthy
version: "3.1"