Skip to content
  • Sylvain Thénault's avatar
    [hooks] Add hook to synchronize file_category with mime_type / format_id · a9d8ac0426d6
    Sylvain Thénault authored
    Upon modification of file_category relation, synchronize mime_type / format_id
    values for the binary data-object, through intermediary SEDAMimeType /
    SEDAFormatId entities which are kept for now but could be removed if the
    automatic user cardinality system is validated by business people.
    
    Synchronization is implemented to consider textual values of concept in the
    category vocabulary, and to keep only those which have a match in the
    vocabularies that are set on the transfer (code list version).
    
    Because of that, don't attempt to synchronize values on archive unit component,
    that should be done when it is imported into a transfer.
    
    Related to #36331831
    a9d8ac0426d6