1
0
mirror of synced 2024-12-05 03:06:05 +03:00

One-Table-One-Class inheritance fix

This commit is contained in:
doctrine 2006-04-15 20:52:23 +00:00
parent ff0aad6ba0
commit 842fee428e
2 changed files with 6 additions and 4 deletions

View File

@ -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());

View File

@ -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());