Re: [Dbix-class] Consistent column name aliasing?

2012-04-02 Thread Alexander Hartmaier
The accessor is only used to create the object accessors, search has always used the column names and not the accessor names. Am 2012-04-02 00:34, schrieb Charlie Garrison: Good morning, On 30/03/12 at 2:49 PM -0400, Maddy, Noel nmad...@hfhs.org wrote: Is there any way to provide consistent

Re: [Dbix-class] Consistent column name aliasing?

2012-04-02 Thread Dave Howorth
Alexander Hartmaier wrote: The accessor is only used to create the object accessors, search has always used the column names and not the accessor names. Using views may help: __PACKAGE__-table('Artists'); __PACKAGE__-result_source_instance-is_virtual(1);

Re: [Dbix-class] Consistent column name aliasing?

2012-04-01 Thread Charlie Garrison
Good morning, On 30/03/12 at 2:49 PM -0400, Maddy, Noel nmad...@hfhs.org wrote: Is there any way to provide consistent aliasing for column names so that the parameters to -search() and the column accessors use the same column aliases?

[Dbix-class] Consistent column name aliasing?

2012-03-30 Thread Maddy, Noel
Is there any way to provide consistent aliasing for column names so that the parameters to -search() and the column accessors use the same column aliases? I see DBIx::Class::Result::ProxyField on CPAN, but it looks not quite complete? Background: I'm trying to use DBIx::Class to access data from