diff --git a/core/lib/Drupal/Core/Entity/EntityBCDecorator.php b/core/lib/Drupal/Core/Entity/EntityBCDecorator.php index e34531d..a23f7e4 100644 --- a/core/lib/Drupal/Core/Entity/EntityBCDecorator.php +++ b/core/lib/Drupal/Core/Entity/EntityBCDecorator.php @@ -219,6 +219,7 @@ public function access($operation = 'view', \Drupal\user\Plugin\Core\Entity\User * Forwards the call to the decorated entity. */ public function get($property_name) { + // Ensure this works with not yet defined fields. if (!isset($this->definitions[$property_name])) { return $this->__get($property_name); } @@ -229,6 +230,7 @@ public function get($property_name) { * Forwards the call to the decorated entity. */ public function set($property_name, $value) { + // Ensure this works with not yet defined fields. if (!isset($this->definitions[$property_name])) { return $this->__set($property_name, $value); }