I still share a bed with my daughter, but with my first once he was around four or five I told him he has to be in his own room and he went. My second always slept in his crib he came to my bed for about two years after turning 1 just got him a bed and a week of saying go to your bed he finally got the message lol once my daughter is old enough to understand that she needs to be in her own bed she will go for now I’m not rushing it.
At 14 months. He's been doing really good