After an emotional custody battle, an Orange County judge ruled that Jesse James will get physical custody of daughter, Sunny, 6, and can move her to Texas to be closer to Sandra Bullock, UsWeekly reports.

Judge Thomas Schulte ruled that Sunny's mom, Janine Lindemulder, will share legal custody; she'll see Sunny once a month in California, half of the Thanksgiving and Christmas holidays, two-thirds of summer vacation and all of spring break.

Lindemulder, who was just recently released from a halfway house, broke down when the judge revealed his ruling. "I can't do this!" she said, while putting her head down. "I'll move! I'll move!"

Sunny will stay with Lindemulder for the rest of the summer and then move to Texas in time for the new school year.