As part of the implementation of an API, I would like to be able to find the SObjectType
from the SObjectField
:
public class MyClass {
// Fields are from various SObjects
public void myMethod(SObjectField[] fs) {
for (SObjectField f : fs) {
DescribeFieldResult dfr = f.getDescribe();
SObjectType t = ...;
...;
}
}
}
but even in the describe results it does not appear to be present. Am I missing something?