Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 rifling through the Monastery: (4)
As of 2015-07-03 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls