Closed (won't fix)
Project:
EntityFieldQuery Views Backend
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2012 at 11:33 UTC
Updated:
1 Apr 2013 at 17:56 UTC
Comments
Comment #1
kiphaas7 commentedWas removed in this issue:
http://drupal.org/node/1564740
Not really sure why it was marked as dubious at best there, but the module maintainer(s) should be able to state why it was removed.
Comment #2
sketman commentedThanks for information.
Too bad that such a great feature was removed. Any advices how to create a view that will list results based on two different tables, please?
Comment #3
chx commentedEntity reference does not support multiple entity types in the first place. It only stores the entity id, the entity type is a field setting. Similarly, we were unable to come up with a viable use case for a query which can yield users or nodes. What is your use case?
Comment #4
kiphaas7 commentedMy use case would be having birthday fields (either using the birthday module or a standard repeating date field) on the user entity and date fields (events) on nodes. A first step to show them in a calendar, preferably via views and the calendar module, would be to actually be able to query both date fields. That's where I envisioned efq_views...
But please correct me if I made an error/missed something in my thought process!
Comment #5
sketman commentedMy use case is, that I have a "Video" node type that should belong (and therefore should reference) to either the Author (user entity) or to the Song (node). If I could reference both - users and nodes in one view, it would be an elegant solution.
Comment #6
kiphaas7 commented#5: Isn't it already possible in views to make a relationship between the node and the node author? If you chose the node entity as base table, then make a relationship with the node author, it should give you access to the author's properties.
Comment #7
sketman commented#6: Thanks for your input.
Yes, I can create the relationship, however:
- If my base table is node I will and up with the list of nodes that pass the selection criteria. Relationship to node author brings me up more information about each node author.
- If my base table is user, I will get the list of users that pass the selection criteria. Relationship User: Content authored brings up all content that each user created.
So in both cases I get list of users OR nodes. However I need a list which begins with users followed by nodes, users and nodes in one list.
Comment #8
chx commentedNo, you can't create a relationship, not with EFQ. I will ponder on this and probably restore multiple.
Comment #9
chx commentedI discussed with bojanz and we arrived to the point that this would be awfully complicated -- the other parts of the ecosystem requires an entity type and so rendering the results and so on would not work.
If you have such a need write custom code based on EntityFieldQuery. Sorry.
Comment #10
kiphaas7 commentedWell, shucks. But thanks for responding :).
Comment #11
bsandor commentedhttp://drupal.org/node/1564740#comment-7243024