UUID is not set to new created term.
This code is used when a new term is created, it should include the UUID:
Term::create([
'vid' => $vid,
'langcode' => $taxonomy['langcode'],
'name' => $taxonomy['name'],
'description' => [
'value' => $taxonomy['description__value'],
'format' => $taxonomy['description__format'],
],
'weight' => $taxonomy['weight'],
'parent' => [$parent],
])->save();
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | uuid-missing-in-term-creation-3018283-2.patch | 571 bytes | david4lim |
Comments
Comment #2
david4lim commentedAdded a patch for solving the issue.
Comment #3
awm commentedComment #4
timkruijsen commentedWhy should it include that? I'd personally rather not have it depend on something like that as it is completely independent of the content.
Comment #5
david4lim commentedHi @timKruijsen, the UUID is the only valid id to identify a content across environments or sites, it should be part of the creation of the term to avoid false negatives finding existing terms. The issue I had was all the term references I had in nodes were deleted after running "drush it --choice=full", and everytime I run the command the terms are deleted and recreated, without the UUIDs there are no way to know the terms into the DB are the same as the ones into the config files.
Comment #7
timkruijsen commentedComment #8
timkruijsen commentedAgreed, I've included it in the 1.15 release.