Changeset 22821


Ignore:
Timestamp:
09/09/10 10:32:15 (17 months ago)
Author:
alex
Message:

Deleted previously commented out sections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mnw21/pathquery_refactor/intermine/perl/lib/InterMine/Item.pm

    r22534 r22821  
    172172    if (ref $value eq 'ARRAY') { 
    173173      if ( not $field->isa('InterMine::Model::Collection') ) { 
    174         die "tried to set field '$name' in class '", $self->to_string(), 
    175             "' to something other than type: ", ref $field, "\n"; 
     174        die "tried to set field '$name' in class '", 
     175        $self->to_string(), 
     176            "' to something other than type: ", 
     177        ref $field, "\n"; 
    176178      } 
    177179 
     
    182184 
    183185      push @{$self->{$name}}, $_ for @items; 
    184  
    185186 
    186187      my $collection_hash_name = _get_collection_hash_name($name); 
     
    199200              $other_item->set($field->reverse_reference_name(), $self); 
    200201            } 
    201         #  } else { 
    202         #   if ($field->is_many_to_many()) { 
    203         #      $other_item->_add_to_collection($field->reverse_reference_name(), $self); 
    204         #   } 
    205202          } 
    206  
    207203        } else { 
    208204          die "collection '$name' in class '", $self->to_string(), 
     
    220216      if (!defined $self->{$name} || $self->{$name} != $value) { 
    221217        $self->{$name} = $value; 
    222  
    223         #if ($field->is_many_to_one()) { 
    224           # add this Item to the collection in the other Item 
    225         #  $value->_add_to_collection($field->reverse_reference_name(), $self); 
    226         #} 
    227218      } 
    228219    } 
Note: See TracChangeset for help on using the changeset viewer.