in reply to Re^3: Class DBI Problems
in thread Class DBI Problems

I don't understand what I need to do to get that to work, especially since the example doesn't show anything else about tracks other than the line that specifies the has_many for the tracks.

Godzirra! Destroying Neo Tokyo since 1954

Replies are listed 'Best First'.
Re^5: Class DBI Problems
by merlyn (Sage) on May 03, 2005 at 22:28 UTC
    Highlighting the very applicable sentence:
    If this is not true you can pass an additional third argument to the has_many() declaration stating which column of the foreign class references us.
    Therefore, you must add a third argument to the has_many declaration (CCopy::Chart->has_many(items => 'CCopy::Chart_Item_XREF');) stating which column (chart_id) of the foreign class (CCopy::Chart_Item_XREF) references the class.

    Is that clearer now?

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.