Overrides Drupal\Core\Entity\DatabaseStorageController::attachLoad().
Overrides DatabaseStorageControllerNG::attachLoad
protected function attachLoad(&$records, $load_revision = FALSE) {
// Prepare standard comment fields.
foreach ($records as $key => $record) {
$record->name = $record->uid ? $record->registered_name : $record->name;
$record->node_type = 'comment_node_' . $record->node_type;
$records[$key] = $record;
}
parent::attachLoad($records, $load_revision);
}