according to....
according to what it says here on their website (http://www1.idf.il/DOVER/site/mainpage.asp?clr=1&sl=HE&id=22&docid=20142) if someone gets married during service they are released, But if you volunteered into the service in the first place you could stay in service. (basically you can "choose" to stay in the IDF i believe)