[Catalyst] Catalyst::Model::CDBI and AutoCommit/autoupdate

Sebastian Riedel sri at oook.de
Fri May 20 22:28:03 CEST 2005


Am 20.05.2005 um 21:58 schrieb Frank Wiegand:

> Perrin Harkins schrieb:
>
>
>> Which option isn't working?  You realize AutoCommit and autoupdate 
>> () do different things, right?
>>
>
> Oh, yes. My fault. I wanted and want to have an option to turn  
> autoupdate() off. I saw this »AutoCommit« thing and felt lucky (and  
> stopped thinking).
>
> This has already been discussed last month, but there was no  
> definitive answer why autoupdate() is on by default.

This was inherited from Maypole, and it's what most people want...

You could do something like this

     use NEXT;

     sub new {
         my $self = shift->NEXT::new(@_);
         $_->autoupdate(0) for $self->loader->classes;
         return $self;
     }

--
sebastian




More information about the Catalyst mailing list