diff --git a/packages/repository/src/__tests__/fixtures/models/order.model.ts b/packages/repository/src/__tests__/fixtures/models/order.model.ts index 4202f85f9cc5..f4256925d89a 100644 --- a/packages/repository/src/__tests__/fixtures/models/order.model.ts +++ b/packages/repository/src/__tests__/fixtures/models/order.model.ts @@ -30,7 +30,7 @@ export class Order extends Entity { @belongsTo(() => Customer) customerId: number; - @belongsTo(() => Shipment) + @belongsTo(() => Shipment, {name: 'shipment'}) shipment_id: number; } diff --git a/packages/repository/src/__tests__/fixtures/repositories/order.repository.ts b/packages/repository/src/__tests__/fixtures/repositories/order.repository.ts index e6dfbcc2d69d..bd7bf0a7b32f 100644 --- a/packages/repository/src/__tests__/fixtures/repositories/order.repository.ts +++ b/packages/repository/src/__tests__/fixtures/repositories/order.repository.ts @@ -40,7 +40,7 @@ export class OrderRepository extends DefaultCrudRepository< customerRepositoryGetter, ); this.shipment = this.createBelongsToAccessorFor( - 'shipment_id', + 'shipment', shipmentRepositoryGetter, ); }