setTableName('demand'); $this->hasColumn('estate_id', 'integer', null, array( 'type' => 'integer', 'notnull' => false, )); $this->hasColumn('estate_name', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => 255, )); $this->hasColumn('is_complet', 'boolean', null, array( 'type' => 'boolean', 'default' => false, 'notnull' => false, )); $this->hasColumn('customer', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => 255, )); $this->hasColumn('tel', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => 255, )); $this->hasColumn('email', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => 255, )); $this->hasColumn('text', 'clob', null, array( 'type' => 'clob', )); $this->option('collate', 'utf8_czech_ci'); $this->option('charset', 'utf8'); } public function setUp() { parent::setUp(); $this->hasOne('Estate', array( 'local' => 'estate_id', 'foreign' => 'id', 'onDelete' => 'SET NULL')); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); } }