diff --git a/lib/Doctrine/Export.php b/lib/Doctrine/Export.php index 84ecdc91d..f28671e41 100644 --- a/lib/Doctrine/Export.php +++ b/lib/Doctrine/Export.php @@ -1047,7 +1047,8 @@ class Doctrine_Export extends Doctrine_Connection_Module while ($class->isAbstract() || ! $class->isSubclassOf($parent) || ! $class->hasMethod('setTableDefinition') || - $class->getMethod('setTableDefinition')->getDeclaringClass()->getName() !== $class->getName()) { + ( $class->hasMethod('setTableDefinition') && + $class->getMethod('setTableDefinition')->getDeclaringClass()->getName() !== $class->getName())) { $class = $class->getParentClass(); if ($class === false) {