Skip to content

Commit

Permalink
fix: retain model default values when creating a model instance
Browse files Browse the repository at this point in the history
FIXES: #808
  • Loading branch information
thetutlage committed Mar 6, 2022
1 parent 6b1c21c commit af25299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Orm/BaseModel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class BaseModel implements LucidRow {
allowExtraProperties?: boolean
) {
const row = new this()
row.fill(payload, allowExtraProperties)
row.merge(payload, allowExtraProperties)

/**
* Pass client options to the newly created row. If row was found
Expand Down

0 comments on commit af25299

Please sign in to comment.