This commit is contained in:
parent
37d7707f57
commit
f3867dbf71
1 changed files with 5 additions and 1 deletions
|
@ -198,10 +198,14 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = $class;
|
$name = $class;
|
||||||
$names[] = $name;
|
$names[] = $name;
|
||||||
} while ($class = get_parent_class($class));
|
} while ($class = get_parent_class($class));
|
||||||
|
|
||||||
|
if ($class === false) {
|
||||||
|
throw new Doctrine_Table_Exception('Unknown component.');
|
||||||
|
}
|
||||||
|
|
||||||
// reverse names
|
// reverse names
|
||||||
$names = array_reverse($names);
|
$names = array_reverse($names);
|
||||||
// save parents
|
// save parents
|
||||||
|
|
Loading…
Add table
Reference in a new issue