Get disabled related entry's data within plugin I'm looping through products ($rawProduct) within Craft Commerce, within a plugin, and returning products which fulfill a certain criteria. I'm then returning a $products array of objects with the following:

$product = new \stdClass;
$product-&gt;url = $rawProduct-&gt;url;
$product-&gt;courseTitle = $rawProduct-&gt;relatedFieldTitle[0]['title'];
$product-&gt;courseUrl = $rawProduct-&gt;relatedFieldTitle[0]['url'];
array_push($products, $product);


This is working great. However, when the target entry of the related field is disabled, lines three and four above are returning empty. I'd like to get this information no matter whether the target entry is disabled. Any ideas?
Came across this same situation myself. Was able to resolve with:

$entry-&gt;entriesFieldWithDisabledEntry-&gt;status(null)-&gt;first()