From 5d329d7e2c1d3bda2218ce6ab5eb046ef00284af Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 10 Apr 2010 11:30:39 +0200 Subject: [PATCH] DDC-502, DDC-507 - Fix refactorings to work with Annotations Driver also --- .../ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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