setTableName('hodnoceni'); $this->hasColumn('head_id', 'integer', null, array( 'type' => 'integer', 'notnull' => true, )); $this->hasColumn('procenta_do', 'integer', 3, array( 'type' => 'integer', 'notnull' => true, 'length' => '3', )); $this->hasColumn('hodnoceni', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('hodnoceni_text', 'clob', null, array( 'type' => 'clob', )); $this->option('type', 'InnoDB'); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { parent::setUp(); $this->hasOne('Hodnoceni_head', array( 'local' => 'head_id', 'foreign' => 'id')); } }