Skip to content

Commit

Permalink
Merge pull request #36 from ittweb/dev
Browse files Browse the repository at this point in the history
Fixed conflicting names
  • Loading branch information
marco-zanella committed Aug 30, 2021
2 parents 98c9b6f + 674f8cf commit 4f2dde5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataMapper/Sql/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use \AccelaSearch\ProductMapper\ProductInterface;
use \AccelaSearch\ProductMapper\StockableInterface;
use \AccelaSearch\ProductMapper\SellableInterface;
use \AccelaSearch\ProductMapper\ImageLabel;
use \AccelaSearch\ProductMapper\ImageLabel as ImageLabelSubject;
use \AccelaSearch\ProductMapper\DataMapper\ItemInterface as ItemMapperInterface;

class Item implements ItemMapperInterface {
Expand Down Expand Up @@ -268,7 +268,7 @@ private function insertImages(ProductInterface $item): self {
};
foreach ($item->getImagesAsArray() as $image) {
if (!isset($this->image_label_lookup[$image->getLabel()])) {
$image_label = new ImageLabel(null, $image->getLabel(), true);
$image_label = new ImageLabelSubject(null, $image->getLabel(), true);
$this->image_label_mapper->create($image_label);
$this->image_label_lookup[$image->getLabel()] = $image_label->getIdentifier();
}
Expand Down

0 comments on commit 4f2dde5

Please sign in to comment.