setTableName('uchazec'); $this->hasColumn('id', 'integer', null, array( 'type' => 'integer', 'primary' => true, 'autoincrement' => true, )); $this->hasColumn('personalista_id', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('pracovnik_id', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('kurz_beh_id', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('test_zakaznik_id', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('vlna_id', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('zakaznik_id', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('jmeno', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('email', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('kod', 'string', 20, array( 'type' => 'string', 'unique' => true, 'length' => '20', )); $this->hasColumn('datum_prihlaseni', 'timestamp', null, array( 'type' => 'timestamp', )); $this->hasColumn('datum_startu', 'timestamp', null, array( 'type' => 'timestamp', )); $this->hasColumn('datum_ukonceni', 'timestamp', null, array( 'type' => 'timestamp', )); $this->hasColumn('archiv', 'boolean', null, array( 'type' => 'boolean', 'default' => false, )); $this->hasColumn('uspesnost', 'integer', 4, array( 'type' => 'integer', 'default' => 0, 'length' => '4', )); $this->hasColumn('odeslani_emailu', 'integer', 1, array( 'type' => 'integer', 'length' => '1', )); $this->hasColumn('test_nazev', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('test_cas', 'integer', 3, array( 'type' => 'integer', 'notnull' => true, 'length' => '3', )); $this->hasColumn('test_instrukce', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('test_kriteria', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('kod_odeslan', 'timestamp', null, array( 'type' => 'timestamp', )); $this->hasColumn('user_ip', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('user_browser', 'clob', null, array( 'type' => 'clob', )); $this->option('type', 'InnoDB'); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasOne('Personalista', array( 'local' => 'personalista_id', 'foreign' => 'id')); $this->hasOne('Test_zakaznik', array( 'local' => 'test_zakaznik_id', 'foreign' => 'id')); $this->hasOne('Vlna', array( 'local' => 'vlna_id', 'foreign' => 'id')); $this->hasOne('Zakaznik', array( 'local' => 'zakaznik_id', 'foreign' => 'id')); $this->hasOne('Pracovnik', array( 'local' => 'pracovnik_id', 'foreign' => 'id')); $this->hasOne('Kurz_beh', array( 'local' => 'kurz_beh_id', 'foreign' => 'id')); $this->hasMany('Uchazec_text', array( 'local' => 'id', 'foreign' => 'uchazec_id')); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); } }