瀏覽代碼

Gestion de deliveryInfos au niveau de l'adresse

master
Guillaume 4 年之前
父節點
當前提交
6625813e24
共有 2 個文件被更改,包括 21 次插入5 次删除
  1. +16
    -0
      ShopBundle/Model/Address.php
  2. +5
    -5
      ShopBundle/Model/OrderShop.php

+ 16
- 0
ShopBundle/Model/Address.php 查看文件

@@ -95,6 +95,10 @@ abstract class Address extends AbstractEntity
*/
protected $merchant;

/**
* @ORM\Column(type="text", nullable=true)
*/
protected $deliveryInfos;

public function __toString()
{
@@ -347,4 +351,16 @@ abstract class Address extends AbstractEntity

return $this;
}

public function getDeliveryInfos(): ?string
{
return $this->deliveryInfos;
}

public function setDeliveryInfos(?string $deliveryInfos): self
{
$this->deliveryInfos = $deliveryInfos;

return $this;
}
}

+ 5
- 5
ShopBundle/Model/OrderShop.php 查看文件

@@ -83,7 +83,7 @@ abstract class OrderShop extends AbstractEntity implements FilterMerchantInterfa
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $infosDelivery;
protected $deliveryInfos;

public function __construct()
{
@@ -329,14 +329,14 @@ abstract class OrderShop extends AbstractEntity implements FilterMerchantInterfa
return $this;
}

public function getInfosDelivery(): ?string
public function getDeliveryInfos(): ?string
{
return $this->infosDelivery;
return $this->deliveryInfos;
}

public function setInfosDelivery(?string $infosDelivery): self
public function setDeliveryInfos(?string $deliveryInfos): self
{
$this->infosDelivery = $infosDelivery;
$this->deliveryInfos = $deliveryInfos;

return $this;
}

Loading…
取消
儲存