File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export interface PolymorphicInterface {
8
8
hasMany : boolean ;
9
9
primaryColumn ?: string ;
10
10
entityTypeColumn ?: string ;
11
- entityTypeId ?: string ;
11
+ entityIdColumn ?: string ;
12
12
eager : boolean ;
13
13
cascade : boolean ;
14
14
deleteBeforeUpdate : boolean ;
@@ -31,7 +31,7 @@ export interface PolymorphicDecoratorOptionsInterface {
31
31
cascade ?: boolean ;
32
32
eager ?: boolean ;
33
33
entityTypeColumn ?: string ;
34
- entityTypeId ?: string ;
34
+ entityIdColumn ?: string ;
35
35
}
36
36
37
37
export type PolymorphicChildType = {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ type PolymorphicHydrationType = {
31
31
const entityTypeColumn = ( options : PolymorphicMetadataInterface ) : string =>
32
32
options . entityTypeColumn || 'entityType' ;
33
33
const entityIdColumn = ( options : PolymorphicMetadataInterface ) : string =>
34
- options . entityTypeId || 'entityId' ;
34
+ options . entityIdColumn || 'entityId' ;
35
35
const PrimaryColumn = ( options : PolymorphicMetadataInterface ) : string =>
36
36
options . primaryColumn || 'id' ;
37
37
You can’t perform that action at this time.
0 commit comments