diff --git a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php index a3333c8e0..017d7b636 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php @@ -73,8 +73,8 @@ abstract class AbstractCommand extends Command } } - // Retrieving ClassMetadatas - $metadatas = $reader->getMetadatas(); + // Retrieving ClassMetadatas, autoloading required since we need access to the Reflection stuff. + $metadatas = $reader->getMetadatas(true); if ( ! empty($metadatas)) { // Create SchemaTool