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 9f22673 commit f2c85acCopy full SHA for f2c85ac
lib/Doctrine/Persistence/Mapping/RuntimeReflectionService.php
@@ -35,11 +35,11 @@ public function __construct()
35
*/
36
public function getParentClasses($class)
37
{
38
- if (! class_exists($class)) {
+ if (! (class_exists($class) || trait_exists($class)) ) {
39
throw MappingException::nonExistingClass($class);
40
}
41
42
- $parents = class_parents($class);
+ $parents = class_parents($class) + class_uses($class);
43
44
assert($parents !== false);
45
0 commit comments