Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
data_content_plain_resource.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  [],
15  'flag = 1',
16  ],
17  ],
18  '$tableData' => [['collection' => 'customer/attribute_collection']],
19  '$expected' => [
20  'updates' => [
21  [
22  'table' => 'table',
23  'field' => 'collection',
24  'to' => \Magento\Customer\Model\ResourceModel\Attribute\Collection::class,
25  'from' => ['`collection` = ?' => 'customer/attribute_collection'],
26  ],
27  ],
28  'where' => ['flag = 1'],
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 ];