Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Patch loosens entity_property_values_create_entity(), and allows passing keys that have no metadata property.
Comment | File | Size | Author |
---|---|---|---|
#1 | create-entity-property-2.patch | 1.32 KB | amitaibu |
create-entity-property-1.patch | 1.32 KB | amitaibu | |
Comments
Comment #1
amitaibuAnd this one is without a typo ;)
Comment #2
fagoMakes sense. Thanks, committed.
Comment #4
klausiWhy? RESTWS relied on this behaviour so that incoming entities with unknown properties were not created. Therefore a RESTWS test case is currently failing.
Updating entities with unknown properties still fails as expected, because the wrapper is used directly. Guess I cannot use entity_property_values_create_entity() anymore and will also have to use the wrapper directly for creation.
Comment #5
klausiWell, I can see that this change might be necessary for other modules. So I posted a patch in #1303000: Creating entities with unknown properties should not be possible to fix it in RESTWS.