Update customer has_many relation

This commit is contained in:
Sam Samai 2021-06-29 12:27:48 +10:00
parent 8f66968724
commit ba65d4f290

View File

@ -54,10 +54,7 @@ impl ColumnTrait for Column {
impl RelationTrait for Relation { impl RelationTrait for Relation {
fn def(&self) -> RelationDef { fn def(&self) -> RelationDef {
match self { match self {
Self::Order => Entity::has_many(super::order::Entity) Self::Order => Entity::has_many(super::order::Entity).into(),
.from(Column::Id)
.to(super::order::Column::CustomerId)
.into(),
} }
} }
} }