Skip to content
Snippets Groups Projects
Commit d3adcab9 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2459873 by borisson_, swentel: FieldStorageConfig::__sleep() should unset ->original

parent affe3f8a
No related branches found
No related tags found
No related merge requests found
......@@ -398,7 +398,7 @@ public function __sleep() {
// Only serialize necessary properties, excluding those that can be
// recalculated.
$properties = get_object_vars($this);
unset($properties['fieldStorage'], $properties['itemDefinition'], $properties['bundleRenameAllowed']);
unset($properties['fieldStorage'], $properties['itemDefinition'], $properties['bundleRenameAllowed'], $properties['original']);
return array_keys($properties);
}
......
......@@ -694,7 +694,7 @@ public function __sleep() {
// Only serialize necessary properties, excluding those that can be
// recalculated.
$properties = get_object_vars($this);
unset($properties['schema'], $properties['propertyDefinitions']);
unset($properties['schema'], $properties['propertyDefinitions'], $properties['original']);
return array_keys($properties);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment