Merge pull request #10578 from MadeHQ/4.11

Prevent infinite loop when getting table name for ComponentID
This commit is contained in:
Daniel Hensby 2022-11-10 21:49:03 +00:00 committed by GitHub
commit bb5b093004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,7 @@ class StandardRelatedDataService implements RelatedDataService
$tableName = $this->dataObjectSchema->tableName($candidateClass);
break;
}
$candidateClass = get_parent_class($class ?? '');
$candidateClass = get_parent_class($candidateClass ?? '');
}
return $tableName;
}