fix get_or_create_from_resource did not update foreign key relations