<?php

/**
 * BaseReviewTags
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $review_id
 * @property integer $tag_id
 * @property Review $Review
 * @property Tag $Tag
 * 
 * @method integer    getReviewId()  Returns the current record's "review_id" value
 * @method integer    getTagId()     Returns the current record's "tag_id" value
 * @method Review     getReview()    Returns the current record's "Review" value
 * @method Tag        getTag()       Returns the current record's "Tag" value
 * @method ReviewTags setReviewId()  Sets the current record's "review_id" value
 * @method ReviewTags setTagId()     Sets the current record's "tag_id" value
 * @method ReviewTags setReview()    Sets the current record's "Review" value
 * @method ReviewTags 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 BaseReviewTags extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('review_tags');
        $this->hasColumn('review_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('Review', array(
             'local' => 'review_id',
             'foreign' => 'id',
             'onDelete' => 'CASCADE'));

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