From ba65d4f2904a64c9685801ed6f57738946e8c95d Mon Sep 17 00:00:00 2001 From: Sam Samai Date: Tue, 29 Jun 2021 12:27:48 +1000 Subject: [PATCH] Update customer has_many relation --- tests/bakery_chain/customer.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/bakery_chain/customer.rs b/tests/bakery_chain/customer.rs index d8566726..a7464082 100644 --- a/tests/bakery_chain/customer.rs +++ b/tests/bakery_chain/customer.rs @@ -54,10 +54,7 @@ impl ColumnTrait for Column { impl RelationTrait for Relation { fn def(&self) -> RelationDef { match self { - Self::Order => Entity::has_many(super::order::Entity) - .from(Column::Id) - .to(super::order::Column::CustomerId) - .into(), + Self::Order => Entity::has_many(super::order::Entity).into(), } } }