diff --git a/packages/database/src/table.ts b/packages/database/src/table.ts index 92167e7364..aaf42604bd 100644 --- a/packages/database/src/table.ts +++ b/packages/database/src/table.ts @@ -220,7 +220,7 @@ export class Table { updatedAt: Utils.underscoredIf('updatedAt', underscored), indexes: Array.from(this.indexes.values()), // freezeTableName: true, - hooks: _.get(this.Model.options, 'hooks') || {}, + hooks: _.get(this.getModel(), 'options.hooks') || {}, ...this.modelOptions, }; }