Re: [CDBI] Subroutine redefined

[prev] [thread] [next] [Date index for 2004/09/03]

From: William McKee
Subject: Re: [CDBI] Subroutine redefined
Date: 16:48 on 03 Sep 2004
On Fri, Sep 03, 2004 at 11:26:37AM -0500, Dave Cash wrote:
> Here's how I suggest you declare these might_haves:
> 
>   BioInfo::DB::Applicants->might_have(Reviewer1 => 'BioInfo::DB::Faculty');
>   BioInfo::DB::Applicants->might_have(Reviewer2 => 'BioInfo::DB::Faculty');
> 
> Then you can get to a reviewer's duties like this:
> 
>   $applicant->Reviewer1->Duties

I think Dave was spot on regarding the cause of the redefined warnings.
However, based on Tony's post to the list yesterday concerning
might_have relationships, I think this is the wrong relation to use
because I'd be surprised if the Reviewer ID would be the same as the
Applicant ID (that would mean a reviewer would be assigned to a single
applicant). I'd suggest the has_a relation.


Good luck,
William

        -- 
        Knowmad Services Inc.
http://www.knowmad.com

Subroutine redefined
Sean Quinlan 15:06 on 03 Sep 2004

Re: [CDBI] Subroutine redefined
William McKee 16:48 on 03 Sep 2004

Re: [CDBI] Subroutine redefined
Sean Quinlan 18:08 on 03 Sep 2004

Re: [CDBI] Subroutine redefined
William McKee 19:05 on 03 Sep 2004

Re: [CDBI] Subroutine redefined
Sean Quinlan 19:48 on 03 Sep 2004

Re: [CDBI] Subroutine redefined
William McKee 20:34 on 03 Sep 2004

Re: [CDBI] Subroutine redefined
Sean Quinlan 17:56 on 03 Sep 2004

Re: [CDBI] Subroutine redefined
Drew Taylor 18:12 on 03 Sep 2004

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