FW: [Dbix-class] Filtering module

Zbigniew Lukasiak zzbbyy at gmail.com
Fri Nov 14 08:37:42 GMT 2008


On Thu, Nov 13, 2008 at 9:11 PM, Octavian Rasnita <orasnita at gmail.com> wrote:
> From: "Matt S Trout" <dbix-class at trout.me.uk>
>>
>> $obj->get_column($col); # COLUMN VALUE
>>
>> $obj->$col; # ATTRIBUTE VALUE
>>
>> If I could time travel, I'd make it _get_column so this fact was obvious.
>> But too much code now relies on it, sadly.
>>
>> I suspect when we create a new, cleaner row object interface, perhaps as a
>> factor out in the 09 process, things like get_column will simply go away
>> so
>> people don't keep making this mistake.
>>
>
> I remember that in some cases $obj->$row doesn't work and we must use
> $obj->get_column('col').

I think this only happens if you call your column 'delete' or 'insert'
or similar.

There is get_inflated_columns - maybe we need get_inflated_column?

-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/



More information about the DBIx-Class mailing list