The annulment or dissolution of the marriage shall not in any way affect the legitimacy of the children of the same.