fix: #2865709 Deriver causes fatal errors if there is no main property

TypedDataRelationshipDeriver passed a NULL main property name (map fields, for example) straight to getPropertyDefinition(). The original getDataType() fatal was guarded by #2866323, but a non-string name is deprecated in drupal:11.3.0 and throws in drupal:12.0.0. Skip the lookup when there is no main property name, and add a kernel test using entity_test_map_field.

Closes #2865709

Merge request reports

Loading
Loading