/** * Serializes this object. Drops the unserializable DriverCursor. In order * to make the CacheableCursor object serializable. * * @return string Serialized object. */ public function serialize() { $this->documents = $this->cursor = null; return parent::serialize(); }