<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('TS_RC_VRC', 'doctrine');

/**
 * BaseTS_RC_VRC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_rc
 * @property integer $id_pc_vrc
 * @property integer $valor
 * @property TS_PC_VRC $TS_PC_VRC
 * @property TS_RC $TS_RC
 * 
 * @method integer   getId()        Returns the current record's "id" value
 * @method integer   getIdRc()      Returns the current record's "id_rc" value
 * @method integer   getIdPcVrc()   Returns the current record's "id_pc_vrc" value
 * @method integer   getValor()     Returns the current record's "valor" value
 * @method TS_PC_VRC getTSPCVRC()   Returns the current record's "TS_PC_VRC" value
 * @method TS_RC     getTSRC()      Returns the current record's "TS_RC" value
 * @method TS_RC_VRC setId()        Sets the current record's "id" value
 * @method TS_RC_VRC setIdRc()      Sets the current record's "id_rc" value
 * @method TS_RC_VRC setIdPcVrc()   Sets the current record's "id_pc_vrc" value
 * @method TS_RC_VRC setValor()     Sets the current record's "valor" value
 * @method TS_RC_VRC setTSPCVRC()   Sets the current record's "TS_PC_VRC" value
 * @method TS_RC_VRC setTSRC()      Sets the current record's "TS_RC" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_RC_VRC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_RC_VRC');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_rc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_pc_vrc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('TS_PC_VRC', array(
             'local' => 'id_pc_vrc',
             'foreign' => 'id'));

        $this->hasOne('TS_RC', array(
             'local' => 'id_rc',
             'foreign' => 'id_rc'));
    }
}