Skip to content

Commit

Permalink
Distinguish apigee baseFields during __get (apigee#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
boobaa committed Oct 12, 2023
1 parent 001dcd2 commit 7fe31b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/FieldableEdgeEntityBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ public function &__get($name) {
if (!isset($this->fieldDefinitions)) {
$this->getFieldDefinitions();
}
if (isset($this->fieldDefinitions[$name])) {
if (isset($this->fieldDefinitions[$name]) && !($this->fieldDefinitions[$name] instanceof BaseFieldDefinition)) {
$return = $this->getField($name);
return $return;
}
Expand Down

0 comments on commit 7fe31b7

Please sign in to comment.