<?php

/**
 * BaseVideoTags
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $video_id
 * @property integer $tag_id
 * @property Video $Video
 * @property Tag $Tag
 * 
 * @method integer   getVideoId()  Returns the current record's "video_id" value
 * @method integer   getTagId()    Returns the current record's "tag_id" value
 * @method Video     getVideo()    Returns the current record's "Video" value
 * @method Tag       getTag()      Returns the current record's "Tag" value
 * @method VideoTags setVideoId()  Sets the current record's "video_id" value
 * @method VideoTags setTagId()    Sets the current record's "tag_id" value
 * @method VideoTags setVideo()    Sets the current record's "Video" value
 * @method VideoTags setTag()      Sets the current record's "Tag" value
 * 
 * @package    sf
 * @subpackage model
 * @author     Atma
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseVideoTags extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('video_tags');
        $this->hasColumn('video_id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('tag_id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
    }

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

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