we also may need to add this function to ezobjectrelationtype, right?