Re: has_a inflate issue
[prev]
[thread]
[next]
[Date index for 2004/12/23]
On Wed, Dec 22, 2004 at 06:30:40PM +0000, diona@xxxxxxxxx.xxx wrote:
> __PACKAGE__->has_a(
> created => 'Time::Piece',
> inflate => sub { Time::Piece->from_mysql_timestamp(shift) },
> deflate => 'mysql_timestamp',
> );
Why can't you just do:
__PACKAGE__->has_a(
created => 'Time::Piece',
inflate => 'from_mysql_timestamp',
deflate => 'mysql_timestamp',
);
??
Tony
|
|
Re: has_a inflate issue
Tony Bowden 01:11 on 23 Dec 2004
|