On Wed, Mar 24, 2010 at 7:53 AM, fREW Schmidt wrote:
> I'll only answer your last issue, since it doesn't make any sense at all in
> DBIC context:
>
> ...
> __PACKAGE__->set_primary_key(qw( part_id customer_id ));
> ...
>
> The above class has a MultiPK. In general I don't like MultiPK but the
>
On Wed, Mar 24, 2010 at 12:55 AM, Rolf Schaufelberger wrote:
>
>>
>> >my $artist = $cd->artist; # hits the database again
>> >my $artist_id = $artist->id;
>> >
>>
>> I define my relationships like that :
>>
>> belongs_to ( artist => 'My::Schema::Artist','artist_id' );
>>
>> so
>> $cd->art
On Wed, Mar 24, 2010 at 12:55 AM, Rolf Schaufelberger wrote:
>
> >my $artist = $cd->artist; # hits the database again
> >my $artist_id = $artist->id;
> >
>
> I define my relationships like that :
>
> belongs_to ( artist => 'My::Schema::Artist','artist_id' );
>
> so
> $cd->artist gives me
Am 24.03.2010 um 04:44 schrieb Bill Moseley:
>
> In my music database I have CD objects that belong to an Artist. I want the
> artist primary key but I don't want to hit
> the database (or do a join with a prefetch) just to get the id.
>
>my $artist = $cd->artist; # hits the database aga
In my music database I have CD objects that belong to an Artist. I want the
artist primary key but I don't want to hit
the database (or do a join with a prefetch) just to get the id.
my $artist = $cd->artist; # hits the database again
my $artist_id = $artist->id;
I know I can use get_colu