Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Class::DBI inflection (plurality)

by VSarkiss (Monsignor)
on Jun 21, 2006 at 18:09 UTC ( #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.


Comment on Re: Class::DBI inflection (plurality)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-04-17 00:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (437 votes), past polls