Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Class::DBI find_or_create method inserts record but $obj->id is undef

by jerrygarciuh (Curate)
on Jan 23, 2004 at 23:46 UTC ( #323738=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $id = shift;
    
    $id ||= $q->param('id');
    ...
    }
        
    $obj->update;
    
  2. or download this
    sub save_to_db {      
        my $self = shift;
        my $class_id = shift;
    ...
        # print data_form
        return $self->render_page('cp/cp_index.html', { educator_id    => 
    +$class->educator }); 
    } # end save_to_db()
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2014-08-30 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls