setTableName('test'); $this->hasColumn('id', 'integer', null, array( 'type' => 'integer', 'primary' => true, 'autoincrement' => true, )); $this->hasColumn('admin_id', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('unikatni_nazev', 'string', 255, array( 'type' => 'string', 'unique' => true, 'notnull' => true, 'length' => '255', )); $this->hasColumn('nazev_testu', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('cas', 'integer', 3, array( 'type' => 'integer', 'notnull' => true, 'length' => '3', )); $this->hasColumn('instrukce', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('kriteria', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('archive', 'integer', null, array( 'type' => 'integer', 'notnull' => true, 'default' => 0, )); $this->option('type', 'InnoDB'); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { parent::setUp(); $this->hasOne('Admin', array( 'local' => 'admin_id', 'foreign' => 'id')); $this->hasMany('Test_cviceni as Cviceni', array( 'local' => 'id', 'foreign' => 'test_id')); $this->hasMany('Test_zakaznik as TestZakaznik', array( 'local' => 'id', 'foreign' => 'test_id')); $this->hasMany('Kurz_beh_testy as Kurz_beh_test_list', array( 'local' => 'id', 'foreign' => 'test_id')); $softdelete0 = new Doctrine_Template_SoftDelete(); $timestampable0 = new Doctrine_Template_TimeStampable(); $this->actAs($softdelete0); $this->actAs($timestampable0); } }