Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Class::DBIx is driving me to drink!

by choroba (Abbot)
on Jan 29, 2013 at 20:47 UTC ( #1015930=note: print w/ replies, xml ) Need Help??


in reply to Class::DBIx is driving me to drink!

Never used DBIx::Class. But is the case mismatch ('planet' vs. 'Planet') ok?

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: Class::DBIx is driving me to drink!
Re^2: Class::DBIx is driving me to drink!
by blue_cowdawg (Monsignor) on Jan 29, 2013 at 20:54 UTC

    When dbicdump does its thing it upcases the first character of the module name it creates in the result sets. So (at least in theory) you should be able to

    # Create a new row in the table planet my $new_planet=$db->resultset('Star')->new({...blah...}); $planet->insert();
    among other things. Just to be sure I am able to select other result set objects
    my $new_mode = $db->resultset("Starmode")->new({starmode=> $mo +de}); $new_mode->insert; ---- my $new_size = $db->resultset("Starsize")->new({starsize=> $size}) +; $new_size->insert(); --- my $new_sgt = $db->resultset("Stargrouptype")->new({type=>$sgt}); $new_sgt->insert(); --- my $new_type = $db->resultset("Startype")->new({startype=>$type}); $new_type->insert();
    for instance.


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (15)
As of 2014-09-22 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls