Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add magic get/setters for entityreferences (#948) #956

Open
wants to merge 14 commits into
base: 3.x
Choose a base branch
from
Prev Previous commit
Next Next commit
Distinguish apigee baseFields during __get (#948)
  • Loading branch information
boobaa committed Oct 12, 2023
commit 7fe31b79878dcbe5720cc40e0cb8841ff5043110
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