<?php

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

    public function setUp()
    {
        parent::setUp();
    $this->hasOne('ThdSegment', array(
             'local' => 'segment_id',
             'foreign' => 'id',
             'onDelete' => 'CASCADE'));

        $this->hasOne('ThdTag', array(
             'local' => 'tag_id',
             'foreign' => 'id',
             'onDelete' => 'CASCADE'));
    }
}