public function reconnect() { // this simulates unserialize(serialize($obj)) without // actually serializing $this->getAdapter()->__sleep(); $this->getAdapter()->__wakeup(); }