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

Method to

src/entity/relation.rs:411–417  ·  view source on GitHub ↗

Build a relationship to an Entity

(mut self, identifier: T)

Source from the content-addressed store, hash-verified

409
410 /// Build a relationship to an Entity
411 pub fn to<T>(mut self, identifier: T) -> Self
412 where
413 T: IdentityOf<R>,
414 {
415 self.to_col = Some(identifier.identity_of());
416 self
417 }
418
419 /// An operation to perform on a foreign key when a delete operation occurs
420 pub fn on_delete(mut self, action: ForeignKeyAction) -> Self {

Callers

nothing calls this directly

Calls 1

identity_ofMethod · 0.80

Tested by

no test coverage detected