[CDBI] Re: HOW TO populate creation date automatically?

[prev] [thread] [next] [Date index for 2006/01/03]

From: Edward J. Sabol
Subject: [CDBI] Re: HOW TO populate creation date automatically?
Date: 18:33 on 03 Jan 2006
Rhesa Rozendaal wrote:
> Why do you use _attribute_store here, which looks like an internal
> method? I use set() as follows in my base class, and it works fine for
> every table with a create_date column:

In general, you don't want to use set() or get() from inside a trigger, since
they invoke triggers themselves. _attribute_store() is the correct method to
use here. Refer to the documentation for evidence:

http://search.cpan.org/dist/Class-DBI/lib/Class/DBI.pm#LOW-LEVEL_DATA_ACCESS

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

[CDBI] Simple join
Jon Molin 00:16 on 30 Dec 2005

Re: [CDBI] Simple join
Peter Speltz 20:13 on 30 Dec 2005

[CDBI] Re: HOW TO populate creation date automatically?
Edward J. Sabol 18:33 on 03 Jan 2006

Generated at 01:21 on 10 Jan 2006 by mariachi v0.52