Skip to content

Commit 63f7945

Browse files
committed
MAGETWO-55462: Portdown MAGETWO-52448 down to M2.1.x branch
1 parent 0db2405 commit 63f7945

File tree

2 files changed

+6
-36
lines changed

2 files changed

+6
-36
lines changed

app/code/Magento/Catalog/Setup/CategorySetup.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ class CategorySetup extends EavSetup
2424
*/
2525
private $categoryFactory;
2626

27-
/**
28-
* This should be set explicitly
29-
*/
30-
const CATEGORY_ENTITY_TYPE_ID = 3;
31-
32-
/**
33-
* This should be set explicitly
34-
*/
35-
const CATALOG_PRODUCT_ENTITY_TYPE_ID = 4;
36-
3727
/**
3828
* Init
3929
*
@@ -76,7 +66,7 @@ public function getDefaultEntities()
7666
{
7767
return [
7868
'catalog_category' => [
79-
'entity_type_id' => self::CATEGORY_ENTITY_TYPE_ID,
69+
'entity_type_id' => 3,
8070
'entity_model' => 'Magento\Catalog\Model\ResourceModel\Category',
8171
'attribute_model' => 'Magento\Catalog\Model\ResourceModel\Eav\Attribute',
8272
'table' => 'catalog_category_entity',
@@ -345,7 +335,7 @@ public function getDefaultEntities()
345335
],
346336
],
347337
'catalog_product' => [
348-
'entity_type_id' => self::CATALOG_PRODUCT_ENTITY_TYPE_ID,
338+
'entity_type_id' => 4,
349339
'entity_model' => 'Magento\Catalog\Model\ResourceModel\Product',
350340
'attribute_model' => 'Magento\Catalog\Model\ResourceModel\Eav\Attribute',
351341
'table' => 'catalog_product_entity',

app/code/Magento/Sales/Setup/SalesSetup.php

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,6 @@
1818
*/
1919
class SalesSetup extends \Magento\Eav\Setup\EavSetup
2020
{
21-
/**
22-
* This should be set explicitly
23-
*/
24-
const ORDER_ENTITY_TYPE_ID = 5;
25-
26-
/**
27-
* This should be set explicitly
28-
*/
29-
const INVOICE_PRODUCT_ENTITY_TYPE_ID = 6;
30-
31-
/**
32-
* This should be set explicitly
33-
*/
34-
const CREDITMEMO_PRODUCT_ENTITY_TYPE_ID = 7;
35-
36-
/**
37-
* This should be set explicitly
38-
*/
39-
const SHIPMENT_PRODUCT_ENTITY_TYPE_ID = 8;
40-
4121
/**
4222
* @var ScopeConfigInterface
4323
*/
@@ -234,31 +214,31 @@ public function getDefaultEntities()
234214
{
235215
$entities = [
236216
'order' => [
237-
'entity_type_id' => self::ORDER_ENTITY_TYPE_ID,
217+
'entity_type_id' => 5,
238218
'entity_model' => 'Magento\Sales\Model\ResourceModel\Order',
239219
'table' => 'sales_order',
240220
'increment_model' => 'Magento\Eav\Model\Entity\Increment\NumericValue',
241221
'increment_per_store' => true,
242222
'attributes' => [],
243223
],
244224
'invoice' => [
245-
'entity_type_id' => self::INVOICE_PRODUCT_ENTITY_TYPE_ID,
225+
'entity_type_id' => 6,
246226
'entity_model' => 'Magento\Sales\Model\ResourceModel\Order\Invoice',
247227
'table' => 'sales_invoice',
248228
'increment_model' => 'Magento\Eav\Model\Entity\Increment\NumericValue',
249229
'increment_per_store' => true,
250230
'attributes' => [],
251231
],
252232
'creditmemo' => [
253-
'entity_type_id' => self::CREDITMEMO_PRODUCT_ENTITY_TYPE_ID,
233+
'entity_type_id' => 7,
254234
'entity_model' => 'Magento\Sales\Model\ResourceModel\Order\Creditmemo',
255235
'table' => 'sales_creditmemo',
256236
'increment_model' => 'Magento\Eav\Model\Entity\Increment\NumericValue',
257237
'increment_per_store' => true,
258238
'attributes' => [],
259239
],
260240
'shipment' => [
261-
'entity_type_id' => self::SHIPMENT_PRODUCT_ENTITY_TYPE_ID,
241+
'entity_type_id' => 8,
262242
'entity_model' => 'Magento\Sales\Model\ResourceModel\Order\Shipment',
263243
'table' => 'sales_shipment',
264244
'increment_model' => 'Magento\Eav\Model\Entity\Increment\NumericValue',

0 commit comments

Comments
 (0)