// RemovePost removes related model Post and matches to given Comment.
RemovePost removes related model Post and matches to given Comment.
// RemovePost removes related model Post and matches to given Comment .
func (c *commentsQueryBuilder) RemovePost() (int64, error) {
	if c.err != nil {
		return 0, c.err
	}
	relation, err := NRN_Comments.Model.RelationByIndex(2)
	if err != nil {
		return 0, errors.Wrapf(mapping.ErrInternal, "getting 'Post' relation by index for model 'Comment' failed: %v", err)
	}
	return c.builder.RemoveRelations(relation)
}
func ( c * commentsQueryBuilder ) RemovePost ( ) ( int64 , error ) { if c . err != nil { return 0 , c . err } relation , err := NRN_Comments . Model . RelationByIndex ( 2 ) if err != nil { return 0 , errors . Wrapf ( mapping . ErrInternal , " " , err ) } return c . builder . RemoveRelations ( relation ) }
RemovePost removes related model Post and matches to given Comment.
RemovePost removes related model Post and matches to given Comment .