Entries inside controller I'm trying to bring back a list of entries from a section. Currently I have the following:

$criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::Entry);
$criteria-&gt;section = 'airports';
$criteria-&gt;airportcode = 'BCN';
$airportPrefHotels = craft()-&gt;elements-&gt;findElements($criteria);


The airport section has a multiple entries field. I want to loop over them.

Is it possible?
You first need to query for the “airport” entry by using the first() method. $airport-&gt;myEntriedFieldHandle then returns an ElementCriteriaModel prepared to get all the entries selected in the Entries field.

$criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::Entry);
$criteria-&gt;section = 'airports';
$criteria-&gt;airportcode = 'BCN';
$airport = $criteria-&gt;first();

if ($airport) {
    $criteria = $airport-&gt;prefHotels;
    $airportPrefHotels = $criteria-&gt;find();

    if ($airportPrefHotels) {
        // do useful things with $airportPrefHotels
    }
}