Un homme a été condamné à un an de prison avec sursis pour avoir retenue son ex-compagne contre son gré chez lui pendant un week-end.