From 526c4c348a5bb52f467c44adb76850e841315a29 Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Tue, 14 Feb 2017 09:38:11 +0100 Subject: [PATCH] fix(Product): correct type of sku in product variant Closes #292 --- src/Model/Product/ProductVariant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Product/ProductVariant.php b/src/Model/Product/ProductVariant.php index fd113e43c6..5673962928 100644 --- a/src/Model/Product/ProductVariant.php +++ b/src/Model/Product/ProductVariant.php @@ -47,7 +47,7 @@ public function fieldDefinitions() { return [ 'id' => [static::TYPE => 'int'], - 'sku' => [static::TYPE => 'int'], + 'sku' => [static::TYPE => 'string'], 'prices' => [static::TYPE => '\Commercetools\Core\Model\Common\PriceCollection'], 'price' => [static::TYPE => '\Commercetools\Core\Model\Common\Price'], 'attributes' => [static::TYPE => '\Commercetools\Core\Model\Common\AttributeCollection'],