Score:1

Get all entities with more than one reference in a field

cn flag

We have an entity type "mandate" which references to an entity "fraction membership". When a politician changes his fraction during an active mandate a new fraction membership entity is created and referenced in a field of the corresponding mandate entity. What we need is an exposed filter for views "deputies who has changed the fraction membership" which is technically "get all mandates with more than one fraction memberships referenced".

Is there already a built-in solution for views for that or would I need to create a custom filter plugin for that?

4uk4 avatar
cn flag
For each multivalue field Views makes a filter for the delta available. When you filter delta=1 you get all entities which have 2 or more references stored in that field.
Tobias Krause avatar
cn flag
Thanks a lot. Your answers are really almost every time so helpful!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.