Didn’t want me close to anyone?

So my boyfriend and I broke up and honestly it’s when I started getting close to his friends. First I could tell he didn’t want me close to his family and as soon as we got close he called off our wedding then I got close with his friends and he broke up with me so confusing given we have a child. I thought he wanted me to be close with them with the things he said but apparently not…