1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Added failing test for ColumnAggregation. Type field is not automaitcally set

This commit is contained in:
meus 2007-08-15 10:26:51 +00:00
parent 9c781f2916
commit b3e983abc3

View File

@ -71,6 +71,13 @@ class Doctrine_ColumnAggregationInheritance_TestCase extends Doctrine_UnitTestCa
$this->assertEqual($q->getSql(), "SELECT i.id AS i__id, i.name AS i__name, i.type AS i__type FROM inheritance_test i WHERE (i.type = 'type 1')");
}
public function testSubclassFieldSetWhenCreatingNewSubclassedRecord()
{
$child = new InheritanceChildTest();
$this->assertTrue(isset($child->type));
$this->assertEqual("type 1", $child->type);
}
}
class InheritanceTest extends Doctrine_Record
{