Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 avoiding work at the Monastery: (5)
As of 2015-07-03 23:50 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 (57 votes), past polls