public function testObjectColumnType()
    {
        $schema = <<<EOF
<database name="generated_object_complex_type_test_1">
    <table name="complex_column_type_entity_1">
        <column name="id" primaryKey="true" type="INTEGER" autoIncrement="true" />
        <column name="bar" type="OBJECT" />
    </table>
</database>
EOF;
        QuickBuilder::buildSchema($schema);
        $e = new \ComplexColumnTypeEntity1();
        $this->assertNull($e->getBar(), 'object columns are null by default');
        $c = new FooColumnValue();
        $c->bar = 1234;
        $e->setBar($c);
        $this->assertEquals($c, $e->getBar(), 'object columns can store objects');
        $e->setBar(null);
        $this->assertNull($e->getBar(), 'object columns are nullable');
        $e->setBar($c);
        $e->save();
        \ComplexColumnTypeEntity1Peer::clearInstancePool();
        $e = \ComplexColumnTypeEntity1Query::create()->findOne();
        $this->assertEquals($c, $e->getBar(), 'object columns are persisted');
    }
 public function testObjectColumnType()
 {
     $e = new ComplexColumnTypeEntity1();
     $this->assertNull($e->getBar(), 'object columns are null by default');
     $c = new FooColumnValue();
     $c->bar = 1234;
     $e->setBar($c);
     $this->assertEquals($c, $e->getBar(), 'object columns can store objects');
     $e->setBar(null);
     $this->assertNull($e->getBar(), 'object columns are nullable');
     $e->setBar($c);
     $e->save();
     ComplexColumnTypeEntity1Peer::clearInstancePool();
     $e = ComplexColumnTypeEntity1Query::create()->findOne();
     $this->assertEquals($c, $e->getBar(), 'object columns are persisted');
 }