I am working on a custom plugin which gets some entry data using
$criteria = craft()->elements->getCriteria(ElementType::Entry);
$criteria->order('postDate asc');
$criteria->dateUpdated = array('and', '>=' . $this->dateFrom->format(DateTime::MYSQL_DATETIME), '<=' . $this->dateTo->format(DateTime::MYSQL_DATETIME));
$criteria->limit('null');
$responses = $criteria->find();
The returned entries contain a relationship to entries in another channel. In this case, the relationship field is named 'video'. So when looping through $responses
I can see that $response->video
is an array containing the sourceElement id and field id.
Is it possible to get the complete entry data for the related entry returned in the same query rather than needing to perform an additional query?