Children born to the parties, or to the wife, in a marriage relationship which may be terminated or annulled pursuant to the provisions of this chapter shall be legitimate as to both parties, unless the court shall decree otherwise according to the proof.
Iowa Code § 598.31