Avoid using getMethod on classes that don't have that method
This commit is contained in:
parent
dc17fba20c
commit
a975c64de1
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue