Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Class::DBI inflection (plurality)

by VSarkiss (Monsignor)
on Jun 21, 2006 at 18:09 UTC ( [id://556744]=note: print w/replies, xml ) Need Help??


in reply to Class::DBI inflection (plurality)

I believe eric256 is correct above: Class::DBI doesn't add anything, it uses exactly what's passed to the has_many method. Even in the docs, it says:

Music::Artist->has_many(cds => 'Music::CD'); # ..snip... my $artist = Music::Artist->create({ artistid => 1, name => 'U2' }); my $cd = $artist->add_to_cds({ cdid => 1, title => 'October', year => 1980, });
Notice the plural cds in both calls.

Maybe you stepped on a bug? If you could post the actual code snippets and errors, it would be easier to tell.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-03-29 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found