Tim Starling tstarling@wikimedia.org wrote:
You could add a static function to User which provides the field name array. If it were used in User::loadFromDatabase(), then it would be immune to bit rot.
Dug into this a little bit, but is it promised that loadFromDatabase will be called early enough? Such as the case of a non-logged in user getting a list of contributions for an article?