Skip to content

Commit 61dbca0

Browse files
committed
fix entity data to import
1 parent 3e15f80 commit 61dbca0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Processor/Entity.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,27 @@ public function buildEntityFromRow(string $type, array $row)
7373

7474
return $page;
7575
},
76+
7677
"fields" => [
78+
"id" => "setId",
7779
"title" => "setTitle",
7880
"identifier" => "setIdentifier",
81+
"page_layout" => "setPageLayout",
7982
"is_active" => "setIsActive",
8083
"content_heading" => "setContentHeading",
8184
"meta_keywords" => "setMetaKeywords",
8285
"meta_description" => "setMetaDescription",
86+
"meta_title" => "setMetaTitle",
87+
"content" => "setContent",
88+
"creation_time" => "setCreationTime",
89+
"update_time" => "setUpdateTime",
90+
"sort_order" => "setSortOrder",
91+
"layout_update_xml" => "setLayoutUpdateXml",
92+
"custom_theme" => "setCustomTheme",
93+
"custom_root_template" => "setCustomRootTemplate",
94+
"custom_layout_update_xml" => "setCustomLayoutUpdateXml",
95+
"custom_theme_from" => "setCustomThemeFrom",
96+
"custom_theme_to" => "setCustomThemeTo",
8397
],
8498
"saver" => function ($entity) {
8599
$this->pageRepository->save($entity);
@@ -106,10 +120,15 @@ public function buildEntityFromRow(string $type, array $row)
106120

107121
return $block;
108122
},
123+
109124
"fields" => [
125+
"id" => "setId",
110126
"title" => "setTitle",
111127
"identifier" => "setIdentifier",
112128
"is_active" => "setIsActive",
129+
"content" => "setContent",
130+
"creation_time" => "setCreationTime",
131+
"update_time" => "setUpdateTime",
113132
],
114133
"saver" => function ($entity) {
115134
$this->blockRepository->save($entity);

0 commit comments

Comments
 (0)