Re: [Dbix-class] Adding columns 'on the fly'

2008-03-09 Thread Matt S Trout
On Tue, Feb 26, 2008 at 08:37:17AM -0500, Dan Richman wrote: > Is it possible to select columns without actually adding those columns > to the schema modules? > > In other words: > > while (my $obj = $rs->next) { > my $data = $obj->Foo->my_column; > } No. However, if you use select/as att

[Dbix-class] Adding columns 'on the fly'

2008-02-26 Thread Dan Richman
Is it possible to select columns without actually adding those columns to the schema modules? In other words: while (my $obj = $rs->next) { my $data = $obj->Foo->my_column; } Is there a way to grab "my_column" without actually adding it to the schema? I ask because in this case, "Foo"