Skip to content

Commit 24b43a7

Browse files
committed
Added field name to all fields
1 parent 9ad104b commit 24b43a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/schema.lua

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ local function fill_entity(schema, alias, entity)
9494
entity.table_name = entity.table_name or ((schema.table_prefix or "") .. alias)
9595
end
9696
for f_alias, field in pairs(entity.fields) do
97+
field.name = f_alias
9798
if primitive_types[field.type] and not primitive_types[field.type].virtual then
9899
field.column_name = field.column_name or ((schema.column_prefix or "") ..
99100
(entity.column_prefix or "") ..

0 commit comments

Comments
 (0)