fixed FK reset on delete of hasone when cascade delete is false

also cleaned up the delete in hasmany