setTableName('otazky'); $this->hasColumn('id', 'integer', null, array( 'type' => 'integer', 'primary' => true, 'autoincrement' => true, )); $this->hasColumn('cviceni_id', 'integer', null, array( 'type' => 'integer', 'notnull' => true, )); $this->hasColumn('text', 'clob', null, array( 'type' => 'clob', 'notnull' => true, )); $this->hasColumn('uvod', 'clob', null, array( 'type' => 'clob', )); $this->option('type', 'InnoDB'); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasOne('Cviceni', array( 'local' => 'cviceni_id', 'foreign' => 'id')); $this->hasMany('Uchazec_text', array( 'local' => 'id', 'foreign' => 'otazka_id')); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); } }