Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
data_content_plain_model.php
Go to the documentation of this file.
1 <?php
7 return [
8  '$replaceRules' => [
9  [
10  'table',
11  'field',
12  \Magento\Framework\Module\Setup\Migration::ENTITY_TYPE_MODEL,
13  \Magento\Framework\Module\Setup\Migration::FIELD_CONTENT_TYPE_PLAIN,
14  ],
15  ],
16  '$tableData' => [
17  ['field' => 'customer/customer'],
18  ['field' => 'customer/attribute_data_postcode'],
19  ['field' => 'customer/attribute_data_postcode::someMethod'],
20  ['field' => \Magento\Customer\Model\Customer::class],
21  ],
22  '$expected' => [
23  'updates' => [
24  [
25  'table' => 'table',
26  'field' => 'field',
27  'to' => \Magento\Customer\Model\Customer_FROM_MAP::class,
28  'from' => ['`field` = ?' => 'customer/customer'],
29  ],
30  [
31  'table' => 'table',
32  'field' => 'field',
33  'to' => \Magento\Customer\Model\Attribute\Data\Postcode::class,
34  'from' => ['`field` = ?' => 'customer/attribute_data_postcode']
35  ],
36  [
37  'table' => 'table',
38  'field' => 'field',
39  'to' => 'Magento\Customer\Model\Attribute\Data\Postcode::someMethod',
40  'from' => ['`field` = ?' => 'customer/attribute_data_postcode::someMethod']
41  ],
42  ],
43  'aliases_map' => [
44  \Magento\Framework\Module\Setup\Migration::ENTITY_TYPE_MODEL => [
45  'customer/customer' => \Magento\Customer\Model\Customer_FROM_MAP::class,
46  'customer/attribute_data_postcode' => \Magento\Customer\Model\Attribute\Data\Postcode::class,
47  ],
48  ],
49  ],
50  '$aliasesMap' => [
51  \Magento\Framework\Module\Setup\Migration::ENTITY_TYPE_MODEL => [
52  'customer/customer' => \Magento\Customer\Model\Customer_FROM_MAP::class,
53  ],
54  ]
55 ];