<?php

/**
 * This class has been auto-generated by the Doctrine ORM Framework
 */
abstract class BaseThdTag extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('thd_tag');
        $this->hasColumn('id', 'integer', 4, array(
             'type' => 'integer',
             'unsigned' => '1',
             'primary' => true,
             'autoincrement' => true,
             'length' => '4',
             ));
        $this->hasColumn('tag', 'string', 255, array(
             'type' => 'string',
             'length' => '255',
             ));
        $this->hasColumn('uniqueid', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => '255',
             ));


        $this->index('uniqueidindex', array(
             'fields' => 
             array(
              0 => 'uniqueid',
             ),
             'type' => 'unique',
             ));
    }

    public function setUp()
    {
        parent::setUp();
    $this->hasMany('ThdSegmentTag as segment_tags', array(
             'local' => 'id',
             'foreign' => 'tag_id'));
    }
}