The fact you see where things are going in the past is enlightening.
When you treat yourself better(ie love yourself) you will change your relationship behaviour. You will relate to people who also love themselves. Until you change that, the liklihood of similar relationships to the one that you have at the moment developing is high.
In other words he reflects you, whether it is that man or another the key to change internally is to become aware. If he is helping you shift and become aware then that path is worth following.