I have heard this, and now that i think about it, its kind of true, for myself. But its more like, I attract what I need at the time, which is someone who i slightly despise, but share the same quality deep down inside, and hate that ,part of myself as well. maybe i thought that by being with them, we could change together, but i wouldnt be able to deal with either,lol.
Then I thought, "Be even more compationate, even more loving, no matter what", and what happens, love comes to my door. Since then, its like, no matter how rude or nasty something is, when i see it, i can see whats good and happy, and there they are, and there i am.