Skip to content

Commit 6f40f31

Browse files
authored
feature #1475 [make:user] better exception msg for non-attribute mapping entities
1 parent f8d45a6 commit 6f40f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Doctrine/DoctrineHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function doesClassUseDriver(string $className, string $driverClass): bool
8989
}
9090

9191
if (null === $em) {
92-
throw new \InvalidArgumentException(sprintf('Cannot find the entity manager for class "%s"', $className));
92+
throw new \InvalidArgumentException(sprintf('Cannot find the entity manager for class "%s". Ensure entity uses attribute mapping.', $className));
9393
}
9494

9595
if (null === $this->mappingDriversByPrefix) {

0 commit comments

Comments
 (0)