FromEdgeOwner returns true if the step is from an edge owner. i.e., from the table that holds the foreign-key.
()
| 146 | // FromEdgeOwner returns true if the step is from an edge owner. |
| 147 | // i.e., from the table that holds the foreign-key. |
| 148 | func (s *Step) FromEdgeOwner() bool { |
| 149 | return s.Edge.Rel == M2O || (s.Edge.Rel == O2O && s.Edge.Inverse) |
| 150 | } |
| 151 | |
| 152 | // ToEdgeOwner returns true if the step is to an edge owner. |
| 153 | // i.e., to the table that holds the foreign-key. |
no outgoing calls
no test coverage detected