Did Cody linely date miley?

Miley Cyrus did date him but they broke up and then Emily osment was with him and then Miley Cyrus and Emily osment stoped being friends for a while until Emily osment stoped (MORE)