If the 2 year agreement was agreed before the training took place it’s legally binding, but if your employer has decided that you’re contracted for 2 years since the training they haven’t got a leg to stand on.
Was there a verbal agreement made before the training started ?
Sent from my mobile.