Related to #4215

Adds option to change accessible fields when calling newEntity()