pub trait HasManyQuery<Target> {
// Provided method
fn has_many(&self) -> Result<Vec<Target>, RecordError>
where Self: Record + Serialize + HasManyAssociation<Target>,
Target: Querying,
<Target::Entity as EntityTrait>::Column: ColumnTrait + Iterable { ... }
}Expand description
Query helper generated for has_many! associations without a through: option.
Provided Methods§
Sourcefn has_many(&self) -> Result<Vec<Target>, RecordError>where
Self: Record + Serialize + HasManyAssociation<Target>,
Target: Querying,
<Target::Entity as EntityTrait>::Column: ColumnTrait + Iterable,
fn has_many(&self) -> Result<Vec<Target>, RecordError>where
Self: Record + Serialize + HasManyAssociation<Target>,
Target: Querying,
<Target::Entity as EntityTrait>::Column: ColumnTrait + Iterable,
Loads the associated records for the receiver.