- πΊπΈUnited States emb03
I am seeing this issue on Drupal 10.2.4 using the latest module release versions : * 3.2.0
- πΊπΈUnited States paulmckibben Atlanta, GA
I'm also seeing this error when I perform an
isEmpty()
call in a custom post-update hook.e.g.
foreach ($nodes as $node) { if ($node->field_my_der->isEmpty()) { $node->field_my_der->setValue([ 'target_id' => 123, 'target_type' => 'taxonomy_term', ]); $node->save(); } }
This code fails with the following errors:
> [warning] Undefined property: Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceItem::$entity DynamicEntityReferenceItem.php:495 > [error] Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).