Changeset 81 for LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/objects.pm
- Timestamp:
- 05/10/09 18:06:27 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/objects.pm
r79 r81 133 133 sub new { 134 134 my ($class, $base, $id) = @_; 135 bless({ id => $id, _base => $base }, $class);135 bless({ _id => $id, _base => $base }, $class); 136 136 } 137 137 … … 208 208 ) 209 209 ); 210 $sth->execute($self-> {id});210 $sth->execute($self->id); 211 211 my $res = $sth->fetchrow_hashref; 212 212 $sth->finish; … … 219 219 ) 220 220 ); 221 $sth->execute($self-> {id}, $field);221 $sth->execute($self->id, $field); 222 222 my $res = $sth->fetchrow_hashref; 223 223 $sth->finish; … … 253 253 ) 254 254 ); 255 $sth->execute(@vals, $self-> {id});255 $sth->execute(@vals, $self->id); 256 256 } 257 257 … … 278 278 foreach (keys %ext) { 279 279 if ($ext{$_}) { 280 $sthu->execute($ext{$_}, $self-> {id}, $_) ||281 $sthx->execute($self-> {id}, $_, $ext{$_}) or return;280 $sthu->execute($ext{$_}, $self->id, $_) || 281 $sthx->execute($self->id, $_, $ext{$_}) or return; 282 282 } else { 283 $sthd->execute($self-> {id}, $_) or return;283 $sthd->execute($self->id, $_) or return; 284 284 } 285 285 }
Note: See TracChangeset
for help on using the changeset viewer.