We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dfdd3e commit 0ffce2bCopy full SHA for 0ffce2b
Mapping/Loader/LoaderChain.php
@@ -77,12 +77,12 @@ public function loadClassMetadata(
77
/**
78
* @param ClassMetadata $classMetaData
79
*
80
- * @throws \Exception
+ * @throws \RunTimeException
81
*/
82
private function checkClassMetaData(ClassMetadata $classMetaData)
83
{
84
- if (($identifier = $classMetaData->getIdentifier()) === null) {
85
- throw new \Exception(sprintf('Class "%s" have no identifier', $classMetaData->getName()));
+ if (!$classMetaData->getIdentifier()) {
+ throw new \RunTimeException(sprintf('Class "%s" have no identifier.', $classMetaData->getName()));
86
}
87
88
0 commit comments