Skip to main content

HasManyThroughQuery

Trait HasManyThroughQuery 

Source
pub trait HasManyThroughQuery<Target, Join> {
    // Provided method
    fn has_many(&self) -> Result<Vec<Target>, RecordError>
       where Self: Record + Serialize + HasManyAssociation<Target>,
             Target: Querying,
             Join: Querying + Serialize,
             <Target::Entity as EntityTrait>::Column: ColumnTrait + Iterable,
             <Join::Entity as EntityTrait>::Column: ColumnTrait + Iterable { ... }
}
Expand description

Query helper generated for has_many! associations that use through:.

Provided Methods§

Source

fn has_many(&self) -> Result<Vec<Target>, RecordError>

Loads the associated records through the join model.

Implementors§