Closed (duplicate)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Code - misc
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2012 at 03:21 UTC
Updated:
1 Feb 2014 at 11:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
paulmarbach commentedHaving the same problem - will investigate a solution.
Comment #2
paulmarbach commentedThis fixes it, but I'm unsure of the repercussions elsewhere. It seems like checking to make sure that the $conditions array is present there is not necessary and is possibly what's breaking this.
Comment #3
paulmarbach commentedfyi it's a core issue, not an entity issue.
Comment #4
Anonymous (not verified) commentedGreat, thanks for debugging to that point. Did you find an issue in the core issue queue?
Comment #5
paulmarbach commentedI never found one, so I opened #1572466: DrupalDefaultEntityController::cacheGet returns no result (on second call, when loading all entities).
Comment #6
Chris Gillis commentedI had the same issue, but used drupal_static() to save the result for the duration of pageload. See the first example here: http://www.lullabot.com/blog/articles/beginners-guide-caching-data-drupal-7
Worked like a charm.
Comment #6.0
Chris Gillis commentedfix HTML
Comment #7
johnvClosing this as a duplicate of paulmarbach's new issue in drupal core's issue queue.
It is very confusing, since both Drupal core as Entity module have an entity.inc file, AND implement a cacheGet() function.
Linclark's patch is also a core patch. paulmarbach's issue gives a more generic case description.
See also #1823926: Loading all entities of a type twice returns no result on second call