Family Code § 2345
CHAPTER 4. General Procedural Provisions
The court may not render a judgment of the legal separation of the parties without the consent of both parties unless one party has not made a general appearance and the petition is one for legal separation.