- 🇷🇴Romania claudiu.cristea Arad 🇷🇴
What if the vocab condition is missing? Let's throw an exception that this is a limitation when querying for parent '0'
This query doesn't work:
// Gimme all top-level terms from 'topic' vocab.
$tids = \Drupal::entityTypeManager::getStorage('taxonomy_term')
->getQuery()
->accessCheck(FALSE)
->condition('vid', 'topic')
->condition('parent', '0')
->execute();
Especially after 🐛 Latest core taxonomy changes are breaking rdf_taxonomy Fixed , fixing this became trickier as we define a top-level term in two ways:
Write a kernel regression test
Some hints:
hook_query_sparql_reference_alter()
and check for a 'parent' condition (=, !=, <>, IN, NOT IN) with '0' value.None.
None.
None.
None.
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
What if the vocab condition is missing? Let's throw an exception that this is a limitation when querying for parent '0'