Re: Factory

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

From: Barry Dancis
Subject: Re: Factory
Date: 15:43 on 14 Apr 2005
Hi Will

>> my $enzyme = $rebase->retrieve('enzyme', name => 'EcoRI');
>that will only work if 'name' is your primary key, btw, but it wouldn't 
>generate the error you saw.

    It does work, probably because it is unique (ie 'name' could be but 
isn't the primary key)


>Meanwhile, to make your code work with 0.991, you just need to get your 
>factory from instance in the first place:
>
>my $rebase = Class::DBI::Factory->instance();

That worked and its working with my many2many relations and the class::dbi 
subclasses all in a single file

Mucho thanks

Barry



Factory
Barry Dancis 16:10 on 13 Apr 2005

Re: Factory
William Ross 10:47 on 14 Apr 2005

Re: Factory
Barry Dancis 15:43 on 14 Apr 2005

Generated at 12:49 on 16 Apr 2005 by mariachi v0.52