use getFields to configure model fields. correct php linting