Re: has_a inflate issue

[prev] [thread] [next] [Date index for 2004/12/23]

From: Diona Kidd
Subject: Re: has_a inflate issue
Date: 05:20 on 23 Dec 2004
I'll try that to see if it works...

thanks for the suggestion. seems easier to read and more direct.

diona kidd

On Dec 22, 2004, at 8:11 PM, Tony Bowden wrote:

> 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

has_a inflate issue
diona 18:30 on 22 Dec 2004

Re: has_a inflate issue
Diona Kidd 19:26 on 22 Dec 2004

Re: has_a inflate issue
Tony Bowden 01:11 on 23 Dec 2004

Re: has_a inflate issue
Diona Kidd 05:20 on 23 Dec 2004

Generated at 12:15 on 16 Jan 2005 by mariachi v0.52