A movie where a robot boy tries to find the Blue Fairy so as to become a real boy and his friend is a robotic talking teddy bear and in the end, after finding the fairy and finding out his mother is dead, he wishes for his mom to come back as he presents a lock of her hair to the fairy so as to fulfill the wish.
A.I. Artificial Intelligence International (2001)
Thanks. Solved!
I really should start reading these more carefully, I should have got that immediately.