Skip to content

Commit 850eace

Browse files
committed
MAGETWO-52124: Simple product special price lost if use it in grouped product
1 parent 71b6bfd commit 850eace

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

app/code/Magento/GroupedProduct/Model/ResourceModel/Product/Link/RelationPersister.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2015 Magento. All rights reserved.
3+
* Copyright © 2016 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

@@ -16,13 +16,17 @@ class RelationPersister
1616
* @var Relation
1717
*/
1818
private $relationProcessor;
19+
1920
/**
2021
* @var LinkFactory
2122
*/
2223
private $linkFactory;
2324

2425
/**
25-
* @inheritDoc
26+
* RelationPersister constructor.
27+
*
28+
* @param Relation $relationProcessor
29+
* @param LinkFactory $linkFactory
2630
*/
2731
public function __construct(Relation $relationProcessor, LinkFactory $linkFactory)
2832
{
@@ -35,10 +39,11 @@ public function __construct(Relation $relationProcessor, LinkFactory $linkFactor
3539
*
3640
* @param Link $subject
3741
* @param \Closure $proceed
38-
* @param $parentId
39-
* @param $data
40-
* @param $typeId
42+
* @param int $parentId
43+
* @param array $data
44+
* @param int $typeId
4145
* @return Link
46+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4247
*/
4348
public function aroundSaveProductLinks(Link $subject, \Closure $proceed, $parentId, $data, $typeId)
4449
{
@@ -59,7 +64,7 @@ public function aroundSaveProductLinks(Link $subject, \Closure $proceed, $parent
5964
*
6065
* @param Link $subject
6166
* @param \Closure $proceed
62-
* @param $linkId
67+
* @param int $linkId
6368
* @return Link
6469
*/
6570
public function aroundDeleteProductLink(Link $subject, \Closure $proceed, $linkId)

0 commit comments

Comments
 (0)