Construct a has one relation
(_: R)
| 80 | |
| 81 | /// Construct a has one relation |
| 82 | fn has_one<R>(_: R) -> RelationBuilder<Self, R> |
| 83 | where |
| 84 | R: EntityTrait + Related<Self>, |
| 85 | { |
| 86 | RelationBuilder::from_rel(RelationType::HasOne, R::to().rev(), true) |
| 87 | } |
| 88 | |
| 89 | /// Construct a has many relation |
| 90 | fn has_many<R>(_: R) -> RelationBuilder<Self, R> |