Commit b3e983ab authored by meus's avatar meus

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

parent 9c781f29
......@@ -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
{
......
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