Is it possible to grab related entries that have been attached to a certain field? So,

I want to grab all entries that are related to an entry but with the following criteria:


Only from my section ($section)
Only the ones that have been added to a certain field ($fieldId)


I currently have this:

$criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::Entry);
$criteria-&gt;section = $section;
$criteria-&gt;limit   = null;
$criteria-&gt;relatedTo = array(
    'targetElement' =&gt; $element,
);
$elements = craft()-&gt;elements-&gt;findElements($criteria);
return $elements;


But if I add two relationship fields to an entry, this will return ALL the associated entries from either field. I want to limit it to just the entries attached to the one field.

Is this possible? Does the question make sense? :-)
If you want to limit your relationships to a particular field, use this syntax:

$criteria-&gt;relatedTo = array(
    'targetElement' =&gt; $element,
    'field' =&gt; $field
);


I believe 'field' will take:

1) A single or array of $field instances

2) A single or array of field IDs or field handles.