Update ModelGenerator.php

https://github.com/atk4/atk4-addons/issues/30