On Fri, Jul 31, 2009 at 2:33 PM, Oleg Kostyuk<[email protected]> wrote:
> As for me, following code have more sence:
>
> =====  cut =====
>       if ( delete $info->{set_on_update} ) {
>           $info->{dynamic_default_on_update} = 'get_timestamp';
>
>           unless ( defined $info->{dynamic_default_on_create} and
>                $info->{dynamic_default_on_create} eq 'get_timestamp'
>            ) {
>               $info->{dynamic_default_on_create} = 'get_timestamp';
>           }
>       }
> =====  cut =====

Hmm. It seems to be right, except that I'm not sure if
dynamic_default_*on_create* should depend of set_*on_update*.

-- 
     wallace reis/wreis         Catalyst and DBIx::Class consultancy with a clue
     Software Developer         and a commit bit: 
http://shadowcat.co.uk/catalyst/
 Shadowcat Systems Limited
 http://www.shadowcat.co.uk     http://www.linkedin.com/in/wallacereis

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to