Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://556744]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2017-07-26 07:37 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (385 votes). Check out past polls.