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 {
|
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(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user