View Single Post
  #2  
Old 09-29-2019, 06:36 AM
 
Ed B. Ed B. is online now
 

eXpert
  
Join Date: Apr 2016
Posts: 323
 

Default Re: File Attachments Module - Importing links

At a first glance, the models created by file attachment module don't have many columns, so it might sound easy to write an importation module. However, there is
a difficulty.


The file attachment module creates tables "product_attachment_storages",
"product_attachments", "product_attachment_translations" and add a column to the table "product". And there are several "cascade relations". Because of these relations, the tables have to be updated in the right order.


Now, presumably a correct use of Doctrine would take care of "the right order", but I have never done this myself, so I don't know how easy or difficult to put all that in place.
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote