/** * Tells which members may kept when the address is being serialized. * * @access public * @return array * An array of members to keep upon serialization. */ public function __sleep() { $this->getSchemaAddress()->uid = $this->getUserId(); return parent::__sleep(); }