Commit 842fee42 authored by doctrine's avatar doctrine

One-Table-One-Class inheritance fix

parent ff0aad6b
......@@ -143,9 +143,11 @@ class Doctrine_Table extends Doctrine_Configurable {
$record->setTableDefinition();
if(isset($this->columns)) {
$method = new ReflectionMethod($name,"setTableDefinition");
$method = new ReflectionMethod($this->name,"setTableDefinition");
$class = $method->getDeclaringClass();
print $class->getName();
if( ! isset($this->tableName))
$this->tableName = strtolower($class->getName());
......
......@@ -23,7 +23,7 @@ $test = new GroupTest("Doctrine Framework Unit Tests");
/**
$test->addTestCase(new Doctrine_RecordTestCase());
$test->addTestCase(new Doctrine_SessionTestCase());
......@@ -36,10 +36,10 @@ $test->addTestCase(new Doctrine_AccessTestCase());
$test->addTestCase(new Doctrine_ConfigurableTestCase());
$test->addTestCase(new Doctrine_EventListenerTestCase());
*/
$test->addTestCase(new Doctrine_DQL_ParserTestCase());
//$test->addTestCase(new Doctrine_BatchIteratorTestCase());
$test->addTestCase(new Doctrine_BatchIteratorTestCase());
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
//$test->addTestCase(new Doctrine_Cache_SqliteTestCase());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment