[Dbix-class] Consistent column name aliasing?

Dave Howorth dhoworth at mrc-lmb.cam.ac.uk
Mon Apr 2 09:59:13 GMT 2012


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);
  __PACKAGE__->result_source_instance->view_definition(...

Cheers, Dave



More information about the DBIx-Class mailing list