Skip to content

Commit a894dd0

Browse files
committed
Update
1 parent d1c9c0d commit a894dd0

7 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/Command/DataExportCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,4 @@ private function createFile(string $exportType, string $salesChannelId)
231231
return $this->file;
232232
}
233233
}
234+
//

src/Export/Data/Entity/ProductEntity.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,4 @@ public function toArray(): array
117117
);
118118
}
119119
}
120+
//

src/Export/Data/Factory/ProductEntityFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ public function createEntities(Entity $entity, string $producedType = ProductEnt
5757
}
5858
}
5959
}
60+
//

src/Export/ExportProducts.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ private function getCriteria(int $batchSize, int $offset): Criteria
108108
$criteria->addAssociation($association);
109109
}
110110

111+
// $criteria->addFilter(new \Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\MultiFilter(
112+
// \Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\MultiFilter::CONNECTION_OR,
113+
// [
114+
// new \Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\EqualsFilter('parentId', null),
115+
// new \Shopware\Core\Framework\DataAbstractionLayer\Search\Filter\EqualsFilter('parent.active', true)
116+
// ]
117+
// ));
118+
111119
return $criteria;
112120
}
113121
}
122+
//

src/Export/Feed.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ private function prepare(array $data): array
5454
return array_map([$this->filter, 'filterValue'], $data);
5555
}
5656
}
57+
//

src/Export/Field/CategoryPath.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ private function getCategories(Entity $entity): CategoryCollection
6464
return $entity->getCategories() ?? new CategoryCollection();
6565
}
6666
}
67+
//

src/Export/Field/FilterAttributes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ private function applyPropertyGroupsFilter(Product $product): array
7575
->getElements();
7676
}
7777
}
78+
//

0 commit comments

Comments
 (0)