File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Catalog/Model/ResourceModel
ConfigurableProduct/Model/Plugin Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
+ declare (strict_types=1 );
7
8
namespace Magento \Catalog \Model \ResourceModel ;
8
9
9
10
use Magento \Catalog \Api \Data \ProductInterface ;
10
11
use Magento \Framework \App \ResourceConnection ;
11
12
12
13
/**
13
14
* Get product type ID by product ID.
14
- *
15
15
*/
16
16
class GetProductTypeById
17
17
{
@@ -35,7 +35,7 @@ public function __construct(
35
35
* @param int $productId
36
36
* @return string
37
37
*/
38
- public function execute (int $ productId )
38
+ public function execute (int $ productId ): string
39
39
{
40
40
$ connection = $ this ->resource ->getConnection ();
41
41
$ productTable = $ this ->resource ->getTableName ('catalog_product_entity ' );
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
+ declare (strict_types=1 );
7
8
namespace Magento \ConfigurableProduct \Model \Plugin ;
8
9
9
10
use Magento \Catalog \Model \ResourceModel \GetProductTypeById ;
10
11
use Magento \CatalogInventory \Model \ResourceModel \Stock \Item as ItemResourceModel ;
11
12
use Magento \Framework \Model \AbstractModel as StockItem ;
12
13
use Magento \ConfigurableProduct \Model \Product \Type \Configurable ;
13
14
15
+ /**
16
+ * Updates stock_status_changed_auto setting for configurable product when it was saved manually
17
+ */
14
18
class UpdateStockChangedAuto
15
19
{
16
20
/**
You can’t perform that action at this time.
0 commit comments