Re: Composite keys

[prev] [thread] [next] [Date index for 2005/05/04]

From: Perrin Harkins
Subject: Re: Composite keys
Date: 20:24 on 04 May 2005
On Wed, 2005-05-04 at 15:53 -0400, Kevin Old wrote:
> I'd like to create a has_a() statement on EmpCustXref for customernum
> AND storenum against CustStoreDetails.

Wouldn't that be has_many()?  There can be more than one
CustStoreDetails for each storenum, right?

> The query I'm running is (in EmpCustXref):
> 
> __PACKAGE__->set_sql(emps => qq {
>                         select *
>                         from __TABLE__
>                         });

Use retrieve_all() instead of that.

- Perrin

Composite keys
Kevin Old 19:53 on 04 May 2005

Re: Composite keys
Perrin Harkins 20:24 on 04 May 2005

Re: Composite keys
Kevin Old 20:59 on 04 May 2005

Re: Composite keys
Perrin Harkins 21:10 on 04 May 2005

Re: Composite keys
Kevin Old 21:45 on 04 May 2005

Generated at 16:36 on 28 Jul 2005 by mariachi v0.52