// Only update the other side if not already being deleted
if (!om.getApiAdapter().isDeleted(otherSM.getObject()) && !otherSM.isDeleting())
{
// Make sure the other object is updated in any caches
om.markDirty(otherSM, false);
Collection otherColl = (Collection)otherSM.provideField(relatedMmds[0].getAbsoluteFieldNumber());
if (otherColl != null)
{
// TODO Localise this message
NucleusLogger.JDO.debug("ManagedRelationships : delete of object causes removal from collection at " + relatedMmds[0].getFullFieldName());
otherColl.remove(sm.getObject());