[support] D7 - EntityFieldQuery: Load all revisions
Georg Jaehnig
georg at jaehnig.org
Thu Nov 22 23:56:52 UTC 2012
Hi,
I have a self-defined entity with revisions called command. The
instance with id=1 has 3 revisions. Now I want to load all these
revisions. Tried this:
$query = new EntityFieldQuery();
$query
->entityCondition('entity_type', 'command')
->propertyCondition('id', 1)
->age(FIELD_LOAD_REVISION);
$result = $query->execute();
but it gives me still only one revision, the current one. There's no
difference to calling it without
->age(FIELD_LOAD_REVISION).
What am I doing wrong?
--
Georg | http://serchilo.net - command the web
More information about the support
mailing list