func (n *Note) SetModel(m *Model) error {
	if err := n.validateModel(m); err != nil {
		return err
	}
	n.Model = m
	for i := 0; i < len(n.FieldValues); i++ {
		n.FieldValues[i].field = m.Fields[i]
	}
	return nil
}
// SetModel assigns the provided model to the Note. This is useful after retrieving
// a note.
SetModel assigns the provided model to the Note. This is useful after retrieving
a note.
// SetModel assigns the provided model to the Note . This is useful after retrieving // a note .
func (n *Note) SetModel(m *Model) error {
	if err := n.validateModel(m); err != nil {
		return err
	}
	n.Model = m
	for i := 0; i < len(n.FieldValues); i++ {
		n.FieldValues[i].field = m.Fields[i]
	}
	return nil
}
func ( n * Note ) SetModel ( m * Model ) error { if err := n . validateModel ( m ) ; err != nil { return err } n . Model = m for i := 0 ; i < len ( n . FieldValues ) ; i ++ { n . FieldValues [ i ] . field = m . Fields [ i ] } return nil }
SetModel assigns the provided model to the Note.
SetModel assigns the provided model to the Note .