File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/model/attributes/relations Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export class BelongsTo extends Relation {
6565 * Set the constraints for an eager load of the relation.
6666 */
6767 addEagerConstraints ( query : Query , models : Collection ) : void {
68- query . whereIn ( this . ownerKey as any , this . getEagerModelKeys ( models ) )
68+ query . whereIn ( this . ownerKey , this . getEagerModelKeys ( models ) )
6969 }
7070
7171 /**
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class HasMany extends Relation {
5555 * Set the constraints for an eager load of the relation.
5656 */
5757 addEagerConstraints ( query : Query , models : Collection ) : void {
58- query . whereIn ( this . foreignKey as any , this . getKeys ( models , this . localKey ) )
58+ query . whereIn ( this . foreignKey , this . getKeys ( models , this . localKey ) )
5959 }
6060
6161 /**
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class HasOne extends Relation {
5555 * Set the constraints for an eager load of the relation.
5656 */
5757 addEagerConstraints ( query : Query , models : Collection ) : void {
58- query . whereIn ( this . foreignKey as any , this . getKeys ( models , this . localKey ) )
58+ query . whereIn ( this . foreignKey , this . getKeys ( models , this . localKey ) )
5959 }
6060
6161 /**
You can’t perform that action at this time.
0 commit comments