Throw unless record defines every one of fields, naming the first that it doesn't and the fields it has: a misspelled field would otherwise be dropped from an insert, stored by an update, or match nothing in a read.
record
fields
The record's name, for the message.
Where the fields were given (insert, set, where...), for the message.
insert
set
where
Unknown field "<field>" in <where>: <entity> has <fields>.
Unknown field "<field>" in <where>: <entity> has <fields>
Throw unless
recorddefines every one offields, naming the first that it doesn't and the fields it has: a misspelled field would otherwise be dropped from an insert, stored by an update, or match nothing in a read.