[Catalyst] attrs for DBIx::Class::Row

Tomas Doran bobtfish at bobtfish.net
Sun Nov 15 16:04:38 GMT 2009


On 15 Nov 2009, at 11:20, Octavian Râşniţă wrote:
> After I constructed a resultset object, I can get the hash of  
> attributes used for generating it using:
> my $attrs = $rs->{attrs}

Erm, this is a bad move, you're breaking abstraction here..

>
> But if I get a row object from that resultset, I can't get the  
> attributes anymore using:
>
> my $row = $rs->first;
> my $attrs = $row->{attrs};
>
> Is there a way of getting the attributes used for searching,  
> ordering, paginating... from a row object?

You're better asking the DBIC list about DBIC issues..

Cheers
t0m




More information about the Catalyst mailing list