Tackle Jonathan Martin is indeed returning to the Bay Area. And he’ll play for one of his head coaches at Stanford, Jim Harbaugh.

The 49ers and Dolphins have issued separate statements announcing the trade. The Dolphins describe the compensation as an undisclosed draft pick.

The trade itself hinges on Martin passing a physical, as the 49ers pointed out in their statement announcing the trade.

“We feel that this move is in the best interests of all parties involved,” Dolphins General Manager Dennis Hickey said. “We wish Jonathan well.”

Owner Stephen Ross, we’re told, was fully on board with the decision to cut the cord on the team’s second-round pick in 2012.