mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-13 05:39:33 +00:00
Allow to import PartKeepr attachments
This commit is contained in:
parent
ae438f1650
commit
bcaf8e9912
4 changed files with 136 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue