Update customer has_many relation
This commit is contained in:
parent
8f66968724
commit
ba65d4f290
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user