| @@ 786-793 (lines=8) @@ | ||
| 783 | $Product->addProductCategory($ProductCategory); |
|
| 784 | $categoriesIdList[$Category->getId()] = true; |
|
| 785 | } |
|
| 786 | } else { |
|
| 787 | $message = trans('csvimportcontroller.notfound.target', [ |
|
| 788 | '%line%' => $line, |
|
| 789 | '%name%' => $headerByKey['product_category'], |
|
| 790 | '%target_name%' => $category, |
|
| 791 | ]); |
|
| 792 | $this->addErrors($message); |
|
| 793 | } |
|
| 794 | } |
|
| 795 | } |
|
| 796 | } |
|
| @@ 833-840 (lines=8) @@ | ||
| 830 | $this->entityManager->persist($ProductTags); |
|
| 831 | } |
|
| 832 | } |
|
| 833 | if (!$Tag) { |
|
| 834 | $message = trans('csvimportcontroller.notfound.target', [ |
|
| 835 | '%line%' => $data->key() + 1, |
|
| 836 | '%name%' => $headerByKey['product_tag'], |
|
| 837 | '%target_name%' => $tag_id, |
|
| 838 | ]); |
|
| 839 | $this->addErrors($message); |
|
| 840 | } |
|
| 841 | } |
|
| 842 | } |
|
| 843 | } |
|