Bill Moseley wrote: > Is there a way in DBIC to alias column names? I know I can specify an > accessor name (and create wrapper accessors using different names), but > I'm looking for a way to alias column names to use both as accessors and > when calling create(). >
Column aliasing is only worth it if it becomes uniform (i.e. works with search() among other things). Since the current SQLA1.5x WHERE specification can not be safely introspected, it is impractical to introduce any sort of dbic-wide column aliasing. Help out with the SQLA2 development and what you want will become reality fairly quickly :) _______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[email protected]
