fix bug where relations to existing objects were not being saved on persist