Plaintiff and appellant, on July 27, 1955, brought this action under Civil Code, section 231, against his wife Dora and her minor son Richard, aged about 3% years, to declare that there is no paternity relationship between the plaintiff and defendant Richard. He alleges that his marriage to the mother was on September 9, 1950, and soon thereafter they separated; that on October 12, 1951, a child was born to her and that the mother claims plaintiff to be his father. Upon information and belief he denies her claim and seeks judgment for a determination of the fact. Defendant mother and the minor son, appearing through her as his guardian
ad litem,
demurred to the complaint, and besides
*150
other grounds, alleged therein that this cause of action had been adjudicated in a certain divorce case in Riverside County-in which plaintiff appeared by his attorney and there executed a property settlement agreement approved in and made a part of the interlocutory decree, whereby plaintiff acknowledged parentage of the named defendant minor. Thereafter, defendants moved the court to dismiss this proceeding upon the grounds of res judicata of the subject matter. Certain affidavits were filed and the record of the divorce action (No. 57439) was incorporated by reference in support of the motion. In the mother’s affidavit she recites that on “April 3, 1951,” she filed a complaint for divorce against plaintiff in this action upon the ground of cruelty, and that she there alleged she was pregnant as a result of her marriage to this plaintiff, and prayed that he support and maintain her and that upon the birth of the child he be ordered to pay such additional support for it as the court deemed proper; that this plaintiff was ordered to and did appear by attorney and in person in answer to an order to show cause, testified and was ordered to pay $7.00 per week for his wife’s support; that he failed to make the payments and was cited for contempt; that on no occasion did plaintiff in this action ever question the paternity of said child; that on April 18, 1952, after numerous conferences between the parties and their attorneys, a property settlement agreement was entered into; that these divorce proceedings were abandoned on account of her questioned legal residence and a similar divorce proceeding was instituted in Riverside County (case No. 57439). It appears therefrom that she alleged, for statistical purposes, certain facts including: “V. Number of children issue of said marriage . . . One (1) a son, Richard Guadalupe Garcia, of the age of one year and eight months.” It then alleges the execution of the property settlement agreement referred to and asked that it be approved and made a part of the decree. This agreement provides in part that the parties were married on September 9, 1950, and ever since have been husband and wife and “during such relationship and as a result thereof there has been born to said parties, one child, namely.* Richard Garcia, of the age of six (6) months”; and that the parties, by this agreement, desire to provide for his care and custody and agree that the mother have such custody, subject to the right of reasonable visitation on the part of the plaintiff here and he agrees to pay $7.00 per week for his care. He also agreed to pay certain hospital and doctor bills con
*151
tracted by reason of the birth of said child, and each agreed not to remove said child out of the jurisdiction of the court. Through their respective attorneys it was stipulated that the divorce case might be heard as a default. An interlocutory judgment was entered according to the agreement in respect to the child and it was approved and made a part of the decree as though set forth therein
in haec verba.
Accordingly it became merged in the judgment.
(Arthur
v.
Arthur,
In the instant action he filed opposition to the motion to dismiss his complaint and alleged generally that he did not believe he was the father of the child and at the suggestion of the trial judge that he would also determine that issue, he produced certain additional affidavits of relatives and others that during the separation of the parties they visited with each other on week-ends, in the home of relatives, but they verily believed the parties did not have the opportunity of having sexual intercourse with each other. The wife claimed otherwise and filed supporting affidavits. Plaintiff here also alleged that in the Los Angeles divorce action he told his then attorney to contest the question of the paternity of the child but he failed to do so and as a compromise he signed the property settlement agreement indicated because he wanted to remarry at the earliest date possible. On the conclusion of this hearing, based on these affidavits and the record in the divorce proceeding, the trial judge granted the motion to dismiss the action, sustained the demurrer without leave to amend, and ordered counsel for defendants to prepare full findings and judgment. In these findings it is found, as true, about all of the facts related in the mother’s affidavit and that said child was born as the lawful issue of said parties; that the facts related in the affidavits produced by plaintiff were untrue; that plaintiff is the natural father of said child; that the former divorce action (No. 57439) adjudicated the issues here presented, and accordingly operated as res judicata of those issues. Judgment was entered accordingly.
It is plaintiff’s contention on this appeal that the trial *152 court was not authorized, under the pleadings as indicated, to pass upon the question and enter a decree that plaintiff here was the natural father of Richard G. Garcia. We agree with this claim. Upon the hearing of a demurrer raising the question of res judicata and sustaining the demurrer without leave to amend, and on a hearing on a motion to dismiss on the same ground, the court was not authorized to hear and determine the merits of the allegations of the complaint upon affidavits. Upon a dismissal of the action it was not authorized to enter minute findings on the conflicting evidence as to the parentage of the child. The only judgment that could properly be entered was a dismissal of the action for the reason indicated in the demurrer and on the motion to dismiss.
It is next contended that the court was not authorized to hear and determine the motion to dismiss before an answer was filed, and was not authorized to sustain the demurrer without leave to amend. It appears to be the general rule that in the absence of the applicability of a 'statutory provision to the contrary, advantage of an estoppel based upon a prior adjudication appearing in the adverse party’s pleadings, may be taken by demurrer, provided, of course, the objection appears from the face of the plaintiff’s pleadings; if his pleadings do not disclose the existence of the matter relied on to support the application of the doctrine of res judicata, the objection cannot be raised by demurrer, but must be taken by plea or answer. (30 Am.Jur. p. 989, § 264; 15 Cal.Jur. p. 208, § 230, and cases collected;
Willson
v.
Security-First Nat. Bank,
A somewhat different rule has been applied on a motion to dismiss the action on the ground of res judicata.
(Cunha
v.
Anglo California Nat. Bank,
Assuming therefore that the proceedings here taken come within the exception noted we will proceed to determine whether the order dismissing the action as to both defendants may be supported under the theory of res judicata. As between the plaintiff and his wife individually, we conclude that the judgment of dismissal on this ground was proper. The trial court properly had before it for consideration the files in action Number 57439.
(Olwell
v.
Hopkins, supra,
p. 153.) It properly considered extrinsic evidence in determining the issues adjudicated in the former action.
(McKenna
v.
Elliott & Horne Co., supra; Best
v.
Fitzgerald, supra; County of Sonoma
v.
De Winton,
A different question arises as to the effect of this judgment as between the plaintiff father and the defendant minor son who was not a party to that action. It is argued by the plaintiff that the divorce action was between different parties; that the minor child was not a party to it and accordingly that judgment operated only as an estoppel between the parties there named, citing 29 California Jurisprudence 2d page 235, section 265. It is further argued that it is a recognized principle of the law of estoppel that the judgment must be mutual and binding on both parties, citing
People
v.
Kovacevich,
The portion of the findings and judgment holding that plaintiff is the father of the minor child, being based upon certain conflicting affidavits relating to his paternity and which were wrongfully considered by the trial court in a hearing on a demurrer and motion to dismiss, cannot be supported since the action was not at issue on the merits and was dismissed. It should be stricken.
The portion of the judgment dismissing the action as to both defendants for the reasons indicated should be affirmed. The remaining portion of the judgment is stricken. Judgment affirmed as modified. Defendants to recover costs on appeal.
Barnard, P. J., and Mussell, J., concurred.
