setTableName('issue'); $this->hasColumn('id', 'integer', null, array( 'type' => 'integer', 'primary' => true, 'autoincrement' => true, )); $this->hasColumn('period', 'string', 100, array( 'type' => 'string', 'notnull' => true, 'unique' => true, 'length' => '100', )); $this->option('type', 'InnoDB'); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasMany('Issue_region as IssueRegions', array( 'local' => 'id', 'foreign' => 'issue_id')); $timestampable0 = new Doctrine_Template_Timestampable(); $sluggable0 = new Doctrine_Template_Sluggable(array( 'unique' => true, 'fields' => array( 0 => 'period', ), )); $this->actAs($timestampable0); $this->actAs($sluggable0); } }