Option to accessible fields in newEntity()

Related to #4215