Skip to content

Commit

Permalink
fix(mapping): respect columnType option
Browse files Browse the repository at this point in the history
Closes #420
  • Loading branch information
Martin Adamek committed Mar 23, 2020
1 parent 9a5763b commit e96d63d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/schema/EntitySchema.ts
Expand Up @@ -47,6 +47,7 @@ export class EntitySchema<T extends AnyEntity<T> = AnyEntity, U extends AnyEntit
rename(options, 'joinColumn', 'joinColumns');
rename(options, 'inverseJoinColumn', 'inverseJoinColumns');
rename(options, 'referenceColumnName', 'referencedColumnNames');
rename(options, 'columnType', 'columnTypes');

const prop = { name, reference: ReferenceType.SCALAR, ...options, type: this.normalizeType(options, type) } as EntityProperty<T>;

Expand Down

0 comments on commit e96d63d

Please sign in to comment.