add non-nullable fk support to o2o relation.