One to none relationship unable to set a value to an old one

failing test for #2331