Skip to main content

HasManyQuery

Trait HasManyQuery 

Source
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§

Source

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.

Implementors§