MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / has_many

Method has_many

src/entity/base_entity.rs:90–95  ·  view source on GitHub ↗

Construct a has many relation

(_: R)

Source from the content-addressed store, hash-verified

88
89 /// Construct a has many relation
90 fn has_many<R>(_: R) -> RelationBuilder<Self, R>
91 where
92 R: EntityTrait + Related<Self>,
93 {
94 RelationBuilder::from_rel(RelationType::HasMany, R::to().rev(), true)
95 }
96
97 /// Construct select statement to find one / all models
98 ///

Callers

nothing calls this directly

Calls 1

revMethod · 0.80

Tested by

no test coverage detected