You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Magic getters/setters support for fieldable Apigee entities #948
Is your feature request related to a problem? Please describe.
$entity->field_foo->getValue() is a commonly used Drupal trick for accessing field data on an entity instead of using (just a bit longer) $entity->get('field_foo')->getValue() . Not supporting these magic methods only becomes a problem on fieldable Apigee entities when Drupal core/contrib codes are called on them. like when an entity reference field on an Apigee entity gets validated by ValidReferenceConstraintValidator.
Steps to reproduce
Add an API Product reference field to a Team entity
Create a team and reference an API product in the field
Edit the team and reference a new API product in the field --> WSOD
Describe the solution you would like
Add support for magic __get()/__set() methods to fieldable Apigee entities.
Activity
Add magic get/setters for entityreferences (apigee#948)
Add magic get/setters for non-base fields (apigee#948)
Distinguish apigee baseFields during __get (apigee#948)
Add magic get/setters for non-base fields (apigee#948)
Distinguish apigee baseFields during __get (apigee#948)
Distinguish apigee baseFields during __get (apigee#948)
boobaa commentedon Apr 9, 2026
FTR the issue is still present with drupal/apigee_edge:3.0.14