Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
data_content_plain_pk_fields.php
Go to the documentation of this file.
1 <?php
7 return [
8  '$replaceRules' => [
9  [
10  'table',
11  'collection',
12  \Magento\Framework\Module\Setup\Migration::ENTITY_TYPE_RESOURCE,
13  \Magento\Framework\Module\Setup\Migration::FIELD_CONTENT_TYPE_PLAIN,
14  ['pk_field1', 'pk_field2'],
15  ],
16  ],
17  '$tableData' => [
18  ['collection' => 'customer/attribute_collection', 'pk_field1' => 'pk_value1', 'pk_field2' => 'pk_value2'],
19  ],
20  '$expected' => [
21  'updates' => [
22  [
23  'table' => 'table',
24  'field' => 'collection',
25  'to' => \Magento\Customer\Model\ResourceModel\Attribute\Collection::class,
26  'from' => ['`pk_field1` = ?' => 'pk_value1', '`pk_field2` = ?' => 'pk_value2'],
27  ],
28  ],
29  'aliases_map' => [
30  \Magento\Framework\Module\Setup\Migration::ENTITY_TYPE_RESOURCE => [
31  'customer/attribute_collection' => \Magento\Customer\Model\ResourceModel\Attribute\Collection::class,
32  ],
33  ],
34  ]
35 ];