This question has been answered by multiple community members. See the first response.
$resource->getOne('customClassName');$customRecord = $modx->getObject('customClassName',
array('internalKey', $modx->resource->get('id')));It should be possible to define aliases in your schema that would allow something like this:
$resource->getOne('customClassName');
<object class="extModResource" extends="modResource">
<composite alias="SomeCustomClass" class="extSomeCustomClass" local="id" foreign="resource_id" cardinality="many" owner="local" />
</object>interface modResourceInterface {
public static function getControllerPath(xPDO &$modx);
public function getContextMenuText();
public function getResourceTypeName();
}$service->getSomeCustomClassFor(modResource $resource)