setTableName('admin'); $this->hasColumn('id', 'integer', null, array( 'type' => 'integer', 'primary' => true, 'autoincrement' => true, )); $this->hasColumn('prih_jmeno', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('prih_heslo', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('jmeno', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('uroven', 'enum', null, array( 'type' => 'enum', 'values' => array( 0 => 'god', 1 => 'lektor', 2 => 'vkladatel', ), 'default' => 'vkladatel', )); $this->option('type', 'InnoDB'); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasMany('Test', array( 'local' => 'id', 'foreign' => 'admin_id')); $this->hasMany('Test_cviceni', array( 'local' => 'id', 'foreign' => 'admin_id')); $this->hasMany('Cviceni', array( 'local' => 'id', 'foreign' => 'admin_id')); $this->hasMany('Test_zakaznik', array( 'local' => 'id', 'foreign' => 'admin_id')); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); } }