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

/**
 * BaseTS_PC_VRC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $codigo
 * @property string $descripcion
 * @property string $desccorta
 * @property integer $id_ts_pc_mrc
 * @property string $operador
 * @property integer $p_ingresos
 * @property TS_GI $TS_GI
 * @property TS_PC_MRC $TS_PC_MRC
 * @property Doctrine_Collection $TS_RC_VRC
 * 
 * @method integer             getId()           Returns the current record's "id" value
 * @method string              getCodigo()       Returns the current record's "codigo" value
 * @method string              getDescripcion()  Returns the current record's "descripcion" value
 * @method string              getDesccorta()    Returns the current record's "desccorta" value
 * @method integer             getIdTsPcMrc()    Returns the current record's "id_ts_pc_mrc" value
 * @method string              getOperador()     Returns the current record's "operador" value
 * @method integer             getPIngresos()    Returns the current record's "p_ingresos" value
 * @method TS_GI               getTSGI()         Returns the current record's "TS_GI" value
 * @method TS_PC_MRC           getTSPCMRC()      Returns the current record's "TS_PC_MRC" value
 * @method Doctrine_Collection getTSRCVRC()      Returns the current record's "TS_RC_VRC" collection
 * @method TS_PC_VRC           setId()           Sets the current record's "id" value
 * @method TS_PC_VRC           setCodigo()       Sets the current record's "codigo" value
 * @method TS_PC_VRC           setDescripcion()  Sets the current record's "descripcion" value
 * @method TS_PC_VRC           setDesccorta()    Sets the current record's "desccorta" value
 * @method TS_PC_VRC           setIdTsPcMrc()    Sets the current record's "id_ts_pc_mrc" value
 * @method TS_PC_VRC           setOperador()     Sets the current record's "operador" value
 * @method TS_PC_VRC           setPIngresos()    Sets the current record's "p_ingresos" value
 * @method TS_PC_VRC           setTSGI()         Sets the current record's "TS_GI" value
 * @method TS_PC_VRC           setTSPCMRC()      Sets the current record's "TS_PC_MRC" value
 * @method TS_PC_VRC           setTSRCVRC()      Sets the current record's "TS_RC_VRC" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_PC_VRC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_PC_VRC');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('desccorta', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_ts_pc_mrc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('operador', 'string', 1, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('p_ingresos', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('TS_PC_MRC', array(
             'local' => 'id_ts_pc_mrc',
             'foreign' => 'id'));

        $this->hasMany('TS_RC_VRC', array(
             'local' => 'id',
             'foreign' => 'id_pc_vrc'));
    }
}