Re: Search for specific field rather than primary key

[prev] [thread] [next] [Date index for 2004/08/13]

From: Perrin Harkins
Subject: Re: Search for specific field rather than primary key
Date: 16:05 on 13 Aug 2004
On Fri, 2004-08-13 at 10:21, Dana Hudes wrote:
> Watch out -- the column groups are hashes. columns doesn't append to those 
> hashes, it *assigns* to them. The result is that whatever was there before 
> gets clobbered. Therefore even when you have manually specified the table 
> class and its column groups you may not have more than one invocation of 
> columns for a particular group.
> 
> __PACKAGE__->columns(Essential =>qw/foo bar/);
> __PACKAGE__->columns(Essential =>qw/baz/);

The columns() method is a get/set accessor:

my @columns = __PACKAGE__->columns(Essential);
push @columns, qw/foo bar/;
__PACKAGE__->columns(Essential => @columns);

- Perrin

(message missing)

Re: Search for specific field rather than primary key
Perrin Harkins 16:05 on 13 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52