Collection returns the Collection model associated with the current Record model. NB! The returned collection is only for read purposes and it shouldn't be modified because it could have unintended side-effects on other Record models from the same collection.
()
| 565 | // NB! The returned collection is only for read purposes and it shouldn't be modified |
| 566 | // because it could have unintended side-effects on other Record models from the same collection. |
| 567 | func (m *Record) Collection() *Collection { |
| 568 | return m.collection |
| 569 | } |
| 570 | |
| 571 | // TableName returns the table name associated with the current Record model. |
| 572 | func (m *Record) TableName() string { |
no outgoing calls