if (newVal && field.getJoinForeignKey() != null
&& field.isJoinOuter()) {
// if our record is in an outer-joined related table and we're not
// updating an existing value, delete the old one
Row del = rm.getRow(field.getTable(), Row.ACTION_DELETE, sm, true);
del.whereForeignKey(field.getJoinForeignKey(), sm);
delete(sm, null, store, rm, del);
// insert the new value
row = rm.getRow(field.getTable(), Row.ACTION_INSERT, sm,
em != null);