[Dbix-class] DynamicColumns
Patrick Meidl
patrick at pantheon.at
Tue Sep 18 09:27:32 GMT 2012
On Tue, Sep 18 2012, Ian Docherty <dbix-class at iandocherty.com> wrote:
> In my case, all I did was to add a method to the DB/Result/User.pm module
>
> sub user_type {
> my ($self) = @_;
> return $self->user_type->name;
> }
this only gets you an accessor. the 'proxy' attribute I suggested is
much more powerful because you can use it in conditions and arguments as
if it were a real column name.
patrick
--
Patrick Meidl ........................ patrick at pantheon.at
Vienna, Austria ...................... http://gplus.to/pmeidl
More information about the DBIx-Class
mailing list