Issue #2761059 by govind.maloo, arunkumark, tstoeckler: Term::postDelete() needlessly uses entity_delete_multiple()

8.3.x
Alex Pott 2016-10-21 06:28:02 -07:00
parent 08e11c168c
commit 367c98f45c
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class Term extends ContentEntityBase implements TermInterface {
// If the term has multiple parents, we don't delete it.
$parents = $storage->loadParents($child->id());
if (empty($parents)) {
$orphans[] = $child->id();
$orphans[] = $child;
}
}
}
@ -79,7 +79,7 @@ class Term extends ContentEntityBase implements TermInterface {
$storage->deleteTermHierarchy(array_keys($entities));
if (!empty($orphans)) {
entity_delete_multiple('taxonomy_term', $orphans);
$storage->delete($orphans);
}
}