// AddTopPost adds related model TopPost and matches to given Blog.
AddTopPost adds related model TopPost and matches to given Blog.
// AddTopPost adds related model TopPost and matches to given Blog .
func (b *blogsQueryBuilder) AddTopPost(_topPost *Post) error {
	if b.err != nil {
		return b.err
	}
	relation, err := NRN_Blogs.Model.RelationByIndex(4)
	if err != nil {
		return errors.Wrapf(mapping.ErrInternal, "getting 'TopPost' relation by index for model 'Blog' failed: %v", err)
	}
	return b.builder.AddRelations(relation, _topPost)
}
func ( b * blogsQueryBuilder ) AddTopPost ( _topPost * Post ) error { if b . err != nil { return b . err } relation , err := NRN_Blogs . Model . RelationByIndex ( 4 ) if err != nil { return errors . Wrapf ( mapping . ErrInternal , " " , err ) } return b . builder . AddRelations ( relation , _topPost ) }
AddTopPost adds related model TopPost and matches to given Blog.
AddTopPost adds related model TopPost and matches to given Blog .