Skip to content

Commit

Permalink
Add external id
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick477 committed Jul 4, 2018
1 parent 81d0ba9 commit 2132a66
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/Entity/ShippingExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ShippingExport implements ShippingExportInterface
/**
* @var string
*/
protected $shipmentGatewayId;
protected $externalId;

/**
* @var ShippingGatewayInterface
Expand Down Expand Up @@ -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;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Entity/ShippingExportInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/config/doctrine/ShippingExport.orm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2132a66

Please sign in to comment.