// RemoveComments removes related model Comments and matches to given Post.
RemoveComments removes related model Comments and matches to given Post.
// RemoveComments removes related model Comments and matches to given Post .
func (p *postsQueryBuilder) RemoveComments() (int64, error) {
	if p.err != nil {
		return 0, p.err
	}
	relation, err := NRN_Posts.Model.RelationByIndex(6)
	if err != nil {
		return 0, errors.Wrapf(mapping.ErrInternal, "getting 'Comments' relation by index for model 'Post' failed: %v", err)
	}
	return p.builder.RemoveRelations(relation)
}
func ( p * postsQueryBuilder ) RemoveComments ( ) ( int64 , error ) { if p . err != nil { return 0 , p . err } relation , err := NRN_Posts . Model . RelationByIndex ( 6 ) if err != nil { return 0 , errors . Wrapf ( mapping . ErrInternal , " " , err ) } return p . builder . RemoveRelations ( relation ) }
RemoveComments removes related model Comments and matches to given Post.
RemoveComments removes related model Comments and matches to given Post .