Association Mode contains some helper methods to handle relationship things easily.
| 12 | |
| 13 | // Association Mode contains some helper methods to handle relationship things easily. |
| 14 | type Association struct { |
| 15 | DB *DB |
| 16 | Relationship *schema.Relationship |
| 17 | Unscope bool |
| 18 | Error error |
| 19 | } |
| 20 | |
| 21 | func (db *DB) Association(column string) *Association { |
| 22 | association := &Association{DB: db, Unscope: db.Statement.Unscoped} |
nothing calls this directly
no outgoing calls
no test coverage detected