I’ve an entity line_item with Drupal Development Company following fields:
- id
- uid (entity reference)
- product (entity reference)
- …
I wish to get all distinct merchandise (product ids) for a particular person.
I attempted with entity question:
$question = $this->entity_query->get('line_item'); $query->situation('uid.entity.identify', $username); $entity_ids = $query->execute();
Sadly this leads to all line_items from Drupal Development Company given person, with a number of instances Drupal Development Company similar product. However what I’m all for is simply getting all completely different merchandise for Drupal Development Company given person.