Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Class::DBI::Iterator and overriding accessors

by jdtoronto (Prior)
on Aug 08, 2006 at 20:36 UTC ( [id://566251]=note: print w/replies, xml ) Need Help??


in reply to Class::DBI::Iterator and overriding accessors

HuckinFappy,

You have given us enough code to tease us, but not enough to be truly illuminating! As you know Clas::DBI doesn't implement a MANY-TO-MANY relationsuip, it is done with the external link table. Have you checked the definitions of the 'has_many' relationships to make sure that the accessors have been properly specified there?

As for the iterator - have you tried the same relationships without the customised accessor/mutator names? How did that work?

The Class::DBI::Iterator is very simple and at a glance if the accessor/mutator methods are all correctly in place then the iterator should deal with it. jdtoronto

Replies are listed 'Best First'.
Re^2: Class::DBI::Iterator and overriding accessors
by HuckinFappy (Pilgrim) on Aug 08, 2006 at 20:44 UTC
    Bingo! It was an incorrect definition of the has_many relationship. Thank you very much! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://566251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found