Closed argiepiano closed 11 months ago
PR #159. @laryn, @hosef please take a look when you have a chance.
@argiepiano This looks like a straightforward change, and I can't imagine it would break anything.
I think it would be fine to merge this.
Thanks
Entity metadata wrapper classes all use dynamic properties to get or set values for entity fields. For example, this is very common:
$wrapper->my_field->value();
wheremy_field
is a dynamic property of the wrapper, and corresponds to the entity'smy_field
field.The solution I'm proposing is to add
#[AllowDynamicProperties]
to the base wrapper class. PR coming.