ToEdgeOwner returns true if the step is to an edge owner. i.e., to the table that holds the foreign-key.
()
| 152 | // ToEdgeOwner returns true if the step is to an edge owner. |
| 153 | // i.e., to the table that holds the foreign-key. |
| 154 | func (s *Step) ToEdgeOwner() bool { |
| 155 | return s.Edge.Rel == O2M || (s.Edge.Rel == O2O && !s.Edge.Inverse) |
| 156 | } |
| 157 | |
| 158 | // ThroughEdgeTable returns true if the step is through a join-table. |
| 159 | func (s *Step) ThroughEdgeTable() bool { |
no outgoing calls
no test coverage detected