Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Reloading CDBI objects from database elegantly

by EvdB (Deacon)
on May 19, 2005 at 17:53 UTC ( #458712=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      # In test suite.
    
    ...
      is $cdbi_object->name, 'Bar', "name has changed to 'Bar'";
    
      # Test fails.
    
  2. or download this
      # Reload the object from the database.
      $cdbi_object->remove_from_object_index;
      $cdbi_object = My::Object->retrieve( $cdbi_object->id );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://458712]
Approved by rev_1318
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2018-07-23 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (472 votes). Check out past polls.

    Notices?