[Dbix-class] Consistent column name aliasing?

Alexander Hartmaier alexander.hartmaier at t-systems.at
Mon Apr 2 08:09:52 GMT 2012


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 <NMADDY1 at 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?
>
> <https://metacpan.org/module/DBIx::Class::ResultSource#add_columns>
>
> Look at the `accessor` attribute; don't know whether it will help with
> custom column names when doing a `search`.
>
>
> Charlie
>


*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*



More information about the DBIx-Class mailing list