File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export interface PolymorphicInterface {
88 hasMany : boolean ;
99 primaryColumn ?: string ;
1010 entityTypeColumn ?: string ;
11- entityTypeId ?: string ;
11+ entityIdColumn ?: string ;
1212 eager : boolean ;
1313 cascade : boolean ;
1414 deleteBeforeUpdate : boolean ;
@@ -31,7 +31,7 @@ export interface PolymorphicDecoratorOptionsInterface {
3131 cascade ?: boolean ;
3232 eager ?: boolean ;
3333 entityTypeColumn ?: string ;
34- entityTypeId ?: string ;
34+ entityIdColumn ?: string ;
3535}
3636
3737export type PolymorphicChildType = {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ type PolymorphicHydrationType = {
3131const entityTypeColumn = ( options : PolymorphicMetadataInterface ) : string =>
3232 options . entityTypeColumn || 'entityType' ;
3333const entityIdColumn = ( options : PolymorphicMetadataInterface ) : string =>
34- options . entityTypeId || 'entityId' ;
34+ options . entityIdColumn || 'entityId' ;
3535const PrimaryColumn = ( options : PolymorphicMetadataInterface ) : string =>
3636 options . primaryColumn || 'id' ;
3737
You can’t perform that action at this time.
0 commit comments