1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Avoid using getMethod on classes that don't have that method

This commit is contained in:
jackbravo 2007-09-03 15:36:56 +00:00
parent dc17fba20c
commit a975c64de1

View File

@ -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) {