func (o *Message) ParentMessage(mods ...qm.QueryMod) messageQuery {
	queryMods := []qm.QueryMod{
		qm.Where("message_id=?", o.ParentMessageID),
	}

	queryMods = append(queryMods, mods...)

	query := Messages(queryMods...)
	queries.SetFrom(query.Query, "\"messages\"")

	return query
}
// ParentMessage pointed to by the foreign key.
ParentMessage pointed to by the foreign key.
// ParentMessage pointed to by the foreign key .
func (o *Message) ParentMessage(mods ...qm.QueryMod) messageQuery {
	queryMods := []qm.QueryMod{
		qm.Where("message_id=?", o.ParentMessageID),
	}
	queryMods = append(queryMods, mods...)
	query := Messages(queryMods...)
	queries.SetFrom(query.Query, "\"messages\"")
	return query
}
func ( o * Message ) ParentMessage ( mods ... qm . QueryMod ) messageQuery { queryMods := [ ] qm . QueryMod { qm . Where ( " " , o . ParentMessageID ) , } queryMods = append ( queryMods , mods ... ) query := Messages ( queryMods ... ) queries . SetFrom ( query . Query , " \" \" " ) return query }
ParentMessage pointed to by the foreign key.
ParentMessage pointed to by the foreign key .