On May 24, 2006, at 5:03 PM, John Siracusa wrote:
Either wrap your class setup in a conditional that will only be run once:

   unless(__PACKAGE__->meta->is_initialized)
   {
     __PACKAGE__->meta->columns(...);
     ...
     __PACKAGE__->meta->initialize(...);
   }

or pass a "replace_existing => 1" argument to your calls to
->meta->initialize(...):

   __PACKAGE__->meta->initialize(replace_existing  => 1);


#2 sounds good


(Wrapping your class setup in a BEGIN block may work too, but I'm not
sure if Apache::Reload re-executes BEGIN blocks or not...)

it does not.

now we both learned something.

//the more you know...

| - - - - - - - - - - - - - - - - - - - -
| RoadSound.com / Indie-Rock.net
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - -






-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to