Allow to import PartKeepr attachments

This commit is contained in:
Jan Böhmer 2023-03-25 22:59:31 +01:00
parent ae438f1650
commit bcaf8e9912
4 changed files with 136 additions and 2 deletions

View file

@ -20,6 +20,7 @@
namespace App\Services\ImportExportSystem\PartKeeprImporter;
use App\Entity\Attachments\PartAttachment;
use App\Entity\Parameters\PartParameter;
use App\Entity\Parts\Category;
use App\Entity\Parts\Footprint;
@ -119,6 +120,9 @@ class PKPartImporter
$this->importPartParameters($data);
$this->importOrderdetails($data);
//Import attachments
$this->importAttachments($data, 'partattachment', Part::class, 'part_id', PartAttachment::class);
return count($part_data);
}