• Alfredo Di Napoli's avatar
    Fix corpus cascade deletion by also fixing spurious nodes_contexts insertions · 9606c5f1
    Alfredo Di Napoli authored
    This commit fixes corpus cascade deletion (which also deletes the
    associated contexts if necessary) but removing two spurious calls to
    `Doc.add` which were performed on the `masterCorpusId`, which means that
    we would never leave contexts dangling because there would always be a
    faux association with the master corpus ID.
    
    This commit fixes that as well as implementing proper cascade deletion.
    9606c5f1