Trait sea_orm::entity::prelude::Related [−][src]
pub trait Related<R> where
R: EntityTrait, {
fn to() -> RelationDef;
fn via() -> Option<RelationDef> { ... }
fn find_related() -> Select<R> { ... }
}
Expand description
Checks if Entities are related
Required methods
fn to() -> RelationDef
fn to() -> RelationDef
Check if an entity is related to another entity
Provided methods
fn via() -> Option<RelationDef>
fn via() -> Option<RelationDef>
Check if an entity is related through another entity
Find related Entities