From 2132a669ea2f505074d3545875b5562582e70851 Mon Sep 17 00:00:00 2001 From: Patryk Date: Wed, 4 Jul 2018 12:09:58 +0200 Subject: [PATCH] Add external id --- src/Entity/ShippingExport.php | 10 +++++----- src/Entity/ShippingExportInterface.php | 6 +++--- src/Resources/config/doctrine/ShippingExport.orm.yml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Entity/ShippingExport.php b/src/Entity/ShippingExport.php index 987ae21..4eb4c6a 100644 --- a/src/Entity/ShippingExport.php +++ b/src/Entity/ShippingExport.php @@ -29,7 +29,7 @@ class ShippingExport implements ShippingExportInterface /** * @var string */ - protected $shipmentGatewayId; + protected $externalId; /** * @var ShippingGatewayInterface @@ -78,17 +78,17 @@ public function setShipment(?ShipmentInterface $shipment): void /** * {@inheritdoc} */ - public function getShipmentGatewayId(): ?string + public function getExternalId(): ?string { - return $this->shipmentGatewayId; + return $this->externalId; } /** * {@inheritdoc} */ - public function setShipmentGatewayId(?string $shipmentGatewayId): void + public function setExternalId(?string $externalId): void { - $this->shipmentGatewayId = $shipmentGatewayId; + $this->externalId = $externalId; } /** diff --git a/src/Entity/ShippingExportInterface.php b/src/Entity/ShippingExportInterface.php index 9a681ed..dc03ff1 100644 --- a/src/Entity/ShippingExportInterface.php +++ b/src/Entity/ShippingExportInterface.php @@ -33,12 +33,12 @@ public function setShipment(?ShipmentInterface $shipment): void; /** * @return string|null */ - public function getShipmentGatewayId(): ?string; + public function getExternalId(): ?string; /** - * @param string|null $shipmentGatewayId + * @param string|null $externalId */ - public function setShipmentGatewayId(?string $shipmentGatewayId): void; + public function setExternalId(?string $externalId): void; /** * @return ShippingGatewayInterface diff --git a/src/Resources/config/doctrine/ShippingExport.orm.yml b/src/Resources/config/doctrine/ShippingExport.orm.yml index e56ef1d..c2a7d62 100644 --- a/src/Resources/config/doctrine/ShippingExport.orm.yml +++ b/src/Resources/config/doctrine/ShippingExport.orm.yml @@ -17,9 +17,9 @@ BitBag\SyliusShippingExportPlugin\Entity\ShippingExport: state: type: string column: state - shipmentGatewayId: + externalId: type: string - coolumn: shipment_gateway_id + column: external_id nullable: true oneToOne: shipment: