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§
Sourcefn 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,
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,
Loads the associated records through the join model.