Method
new
(rel_type: RelationType, from: E, to: R, is_owner: bool)
Source from the content-addressed store, hash-verified
| 365 | R: EntityTrait, |
| 366 | { |
| 367 | pub(crate) fn new(rel_type: RelationType, from: E, to: R, is_owner: bool) -> Self { |
| 368 | Self { |
| 369 | entities: PhantomData, |
| 370 | rel_type, |
| 371 | from_tbl: from.table_ref(), |
| 372 | to_tbl: to.table_ref(), |
| 373 | from_col: None, |
| 374 | to_col: None, |
| 375 | is_owner, |
| 376 | on_delete: None, |
| 377 | on_update: None, |
| 378 | on_condition: None, |
| 379 | fk_name: None, |
| 380 | condition_type: ConditionType::All, |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | pub(crate) fn from_rel(rel_type: RelationType, rel: RelationDef, is_owner: bool) -> Self { |
| 385 | Self { |
Callers
nothing calls this directly
Tested by
no test coverage detected