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(), } } }