setTableName('mistnost'); $this->hasColumn('budova', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('patro', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('mistnost', 'string', 255, array( 'type' => 'string', 'length' => '255', )); $this->hasColumn('poznamka', 'clob', null, array( 'type' => 'clob', )); $this->hasColumn('zakaznik_id', 'integer', null, array( 'type' => 'integer', )); $this->hasColumn('barva', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'default' => 'bcbcbc', 'length' => '255', )); $this->option('type', 'InnoDB'); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { parent::setUp(); $this->hasOne('Zakaznik', array( 'local' => 'zakaznik_id', 'foreign' => 'id')); $this->hasMany('Kurz_rozvrh as Kurz_rozvrh_list', array( 'local' => 'id', 'foreign' => 'mistnost_id')); } }