Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 122bdbd

Browse files
author
Jens Schulze
committed
Merge branch 'hotfix/v1.2.3'
2 parents facd1d9 + fa7fbc2 commit 122bdbd

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="1.2.3"></a>
2+
## [1.2.3](https://github.com/sphereio/commercetools-php-sdk/compare/v1.2.2...v1.2.3) (2016-07-14)
3+
4+
5+
### Bug Fixes
6+
7+
* **ProductType:** fix NestedType field definitions ([982d51d](https://github.com/sphereio/commercetools-php-sdk/commit/982d51d)), closes [#231](https://github.com/sphereio/commercetools-php-sdk/issues/231)
8+
9+
10+
111
<a name="1.2.2"></a>
212
## [1.2.2](https://github.com/sphereio/commercetools-php-sdk/compare/v1.2.1...v1.2.2) (2016-07-07)
313

src/AbstractHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
abstract class AbstractHttpClient
1616
{
17-
const VERSION = '1.2.2';
17+
const VERSION = '1.2.3';
1818

1919
/**
2020
* @var AdapterInterface

src/Model/ProductType/NestedType.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,21 @@
1010
* @link https://dev.commercetools.com/http-api-projects-productTypes.html#nestedtype
1111
* @method string getName()
1212
* @method NestedType setName(string $name = null)
13+
* @method ProductTypeReference getTypeReference()
14+
* @method NestedType setTypeReference(ProductTypeReference $typeReference = null)
1315
*/
1416
class NestedType extends AttributeType
1517
{
1618
const NAME = 'nested';
1719

20+
public function fieldDefinitions()
21+
{
22+
$definitions = parent::fieldDefinitions();
23+
$definitions['typeReference'] = [static::TYPE => '\Commercetools\Core\Model\ProductType\ProductTypeReference'];
24+
25+
return $definitions;
26+
}
27+
1828
public function fieldTypeDefinition()
1929
{
2030
return [static::TYPE => '\Commercetools\Core\Model\Common\AttributeCollection'];

tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commercetools-php-sdk-changelog",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "commercetools PHP SDK changelog generator package description",
55
"homepage": "https://github.com/sphereio/commercetools-php-sdk",
66
"bugs": "https://github.com/sphereio/commercetools-php-sdk/issues",

0 commit comments

Comments
 (0)