original_string: protected function deleteLinkedFieldValues($field_id)
      {
          $sql = 'DELETE fvt
                  FROM field_value_translation AS fvt
                  WHERE fvt.field_value_id IN (SELECT DISTINCT(fv.field_value_id)
                  FROM field_value AS fv
                  INNER JOIN field_value AS fv2
                  ON (fv.field_value_id = fv2.field_value_id)
                  WHERE fv.field_id = ?)';
  
          return (bool) $this->db->run($sql, array($field_id))->rowCount();
      }
code: protected function deleteLinkedFieldValues($field_id)
      {
          $sql = 'DELETE fvt
                  FROM field_value_translation AS fvt
                  WHERE fvt.field_value_id IN (SELECT DISTINCT(fv.field_value_id)
                  FROM field_value AS fv
                  INNER JOIN field_value AS fv2
                  ON (fv.field_value_id = fv2.field_value_id)
                  WHERE fv.field_id = ?)';
  
          return (bool) $this->db->run($sql, array($field_id))->rowCount();
      }
code_tokens: protected function deleteLinkedFieldValues ( $ field_id ) { $ sql = 'DELETE fvt
                  FROM field_value_translation AS fvt
                  WHERE fvt.field_value_id IN (SELECT DISTINCT(fv.field_value_id)
                  FROM field_value AS fv
                  INNER JOIN field_value AS fv2
                  ON (fv.field_value_id = fv2.field_value_id)
                  WHERE fv.field_id = ?)' ; return ( bool ) $ this -> db -> run ( $ sql , array ( $ field_id ) ) -> rowCount ( ) ; }
docstring: Delete all field values and their translations related to the field
  @param int $field_id
  @return bool
docstring_tokens: Delete all field values and their translations related to the field