I have been using the ids() method on the ElementCriteriaModel returned by a call to an entries field within a Twig template to return an array of ids for further processing.
Now I wish to eager-load these entries, but the entries are returned as an array with no access to the ids() method.
Is there an efficient way to get this array of ids within Twig, or would I be better moving this to a plugin?