setTableName('region'); $this->hasColumn('id', 'integer', null, array( 'type' => 'integer', 'primary' => true, 'autoincrement' => true, )); $this->hasColumn('title', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->hasColumn('subtitle', 'string', 255, array( 'type' => 'string', 'notnull' => true, 'length' => '255', )); $this->option('type', 'InnoDB'); $this->option('collate', 'utf8_unicode_ci'); $this->option('charset', 'utf8'); } public function setUp() { $this->hasMany('Page as Pages', array( 'local' => 'id', 'foreign' => 'region_id')); $this->hasMany('Issue_region', array( 'local' => 'id', 'foreign' => 'region_id')); $timestampable0 = new Doctrine_Template_Timestampable(); $sluggable0 = new Doctrine_Template_Sluggable(); $this->actAs($timestampable0); $this->actAs($sluggable0); } }