Most labor laws state that training that make profit for a company is unbondable.
However training for personnal grow could be.
More over a company that I have worked for get around this they offered pilot's type training if they sign a personnal loan over a 2 year period which decreases monthly. That way if the pilot left before 2 years they got some money back if he stayed they got him for 2 years. It seems fair