I would not even consider getting paid through uni for X years as a compulsory employee. I've seen enough companies bought out by foreign companies and throwing out the rule book. I can easily see current management chucking you out, suing you for training and interest owed and then giving themselves a bonus, leaving you with many years experience in something of no interest to anyone else. I say this as someone who got a grant to go to uni, went to work for BT who invested millions in mine and associated posts and then the government privatised us and decided having the best fibre optic design group in the world was a problem for other companies and so shut us down.
The lock in times for these things to make sense for company and student are incompatible with human rights let alone good employment practice.