What happens if an employee trains at your expense and then leaves?

Employers who are not careful to attach conditions to upskilling offers may get burned