From 710856d856551308666196971a7b72dbfa5ef005 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 19 Nov 2012 10:47:26 +0100 Subject: [PATCH] Fixes serialization of ObjectType objects --- .../files/lib/data/object/type/ObjectType.class.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php index 3434ebea6e..bcfd3517ad 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php @@ -42,12 +42,14 @@ class ObjectType extends ProcessibleDatabaseObject { } /** - * Destroies processor if attempting to serialize. + * Returnes the names of proporties that should be serialized. + * + * @return array */ public final function __sleep() { - if ($this->processor !== null) { - $this->processor = null; - } + // 'processor' isn't returned since it can be an instance of + // wcf\system\SingletonFactory which may not be serialized + return array('data'); } /** -- 2.20.1