"It's not you, it's me"...*rolls eyes*

Was recently broken up with by a guy I could really see myself being with. 
I went away for 6 weeks and whilst I was gone he kept telling me how he couldn't wait to be with me once I got back and start a relationship. I get back and 2 weeks later he breaks up with me saying it got too real and he got scared. Nothing I said could make him change his mind.
Anyone else been in the same boat where you're a perfect couple, you both have strong feelings for each other but the guy panics about being in a committed relationship and ends it purely based on fear of commitment?