On 9/18/05, Daniel Allen <[EMAIL PROTECTED]> wrote:
> On 9/17/05, David Baird <[EMAIL PROTECTED]> wrote:
> 
> > I think the docs are out of date. The related() method should work
> > fine for has_many relationships. Although it's probably broken for
> > has_a, unless you get the latest from svn.
> 
> Hm, I'm not sure what's out of date in the docs, then- adding the
> related() line
> from the docs does what he said it should- it associates the beers
> table with the
> pubs table via the handpumps table... 

You shouldn't need to add the line, it should work already. If you
view a beer, you get a list of its pubs, and vice versa. Specifically,
there's already a related() method in the model class and it can
traverse many-many relationships.

> But it doesn't provide any means
> to add to the handpumps table, does it?  That's really what I'm after.

CDBI would take care of that if there were a multiple select template
to provide the interface.

> I'm finding a bit
> of a learning curve with Class::DBI.

Welcome!

d.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Maypole-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to