Construct a has many relation
(_: R)
| 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 | /// |