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

/**
 * BaseRVC_CONTRATISTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_contratista
 * @property integer $tipo_recurso
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property string $razon_social
 * @property string $correo
 * @property string $ciudad
 * @property integer $estado
 * @property integer $id_tipo_regimen
 * @property integer $mas_empleados
 * @property integer $declarante_renta
 * @property integer $pensionado
 * @property integer $embargo
 * @property integer $valor_embargo
 * @property TIPO_DOCUMENTO $TIPO_DOCUMENTO
 * @property TS_REG_TRI $TS_REG_TRI
 * @property Doctrine_Collection $RVC_CONTRATO
 * 
 * @method integer             getIdContratista()    Returns the current record's "id_contratista" value
 * @method integer             getTipoRecurso()      Returns the current record's "tipo_recurso" value
 * @method integer             getIdTipoDoc()        Returns the current record's "id_tipo_doc" value
 * @method string              getNumDoc()           Returns the current record's "num_doc" value
 * @method string              getRazonSocial()      Returns the current record's "razon_social" value
 * @method string              getCorreo()           Returns the current record's "correo" value
 * @method string              getCiudad()           Returns the current record's "ciudad" value
 * @method integer             getEstado()           Returns the current record's "estado" value
 * @method integer             getIdRegTri()         Returns the current record's "id_tipo_regimen" value
 * @method integer             getMasEmpleados()     Returns the current record's "mas_empleados" value
 * @method integer             getDeclaranteRenta()  Returns the current record's "declarante_renta" value
 * @method integer             getPensionado()       Returns the current record's "pensionado" value
 * @method integer             getEmbargo()          Returns the current record's "embargo" value
 * @method integer             getValorEmbargo()     Returns the current record's "valor_embargo" value
 * @method TIPO_DOCUMENTO      getTIPODOCUMENTO()    Returns the current record's "TIPO_DOCUMENTO" value
 * @method TS_REG_TRI          getTSREGTRI()         Returns the current record's "TS_REG_TRI" value
 * @method Doctrine_Collection getRVCCONTRATO()      Returns the current record's "RVC_CONTRATO" collection
 * @method RVC_CONTRATISTA     setIdContratista()    Sets the current record's "id_contratista" value
 * @method RVC_CONTRATISTA     setTipoRecurso()      Sets the current record's "tipo_recurso" value
 * @method RVC_CONTRATISTA     setIdTipoDoc()        Sets the current record's "id_tipo_doc" value
 * @method RVC_CONTRATISTA     setNumDoc()           Sets the current record's "num_doc" value
 * @method RVC_CONTRATISTA     setRazonSocial()      Sets the current record's "razon_social" value
 * @method RVC_CONTRATISTA     setCorreo()           Sets the current record's "correo" value
 * @method RVC_CONTRATISTA     setCiudad()           Sets the current record's "ciudad" value
 * @method RVC_CONTRATISTA     setEstado()           Sets the current record's "estado" value
 * @method RVC_CONTRATISTA     setIdRegTri()         Sets the current record's "id_tipo_regimen" value
 * @method RVC_CONTRATISTA     setMasEmpleados()     Sets the current record's "mas_empleados" value
 * @method RVC_CONTRATISTA     setDeclaranteRenta()  Sets the current record's "declarante_renta" value
 * @method RVC_CONTRATISTA     setPensionado()       Sets the current record's "pensionado" value
 * @method RVC_CONTRATISTA     setEmbargo()          Sets the current record's "embargo" value
 * @method RVC_CONTRATISTA     setValorEmbargo()     Sets the current record's "valor_embargo" value
 * @method RVC_CONTRATISTA     setTIPODOCUMENTO()    Sets the current record's "TIPO_DOCUMENTO" value
 * @method RVC_CONTRATISTA     setTSREGTRI()         Sets the current record's "TS_REG_TRI" value
 * @method RVC_CONTRATISTA     setRVCCONTRATO()      Sets the current record's "RVC_CONTRATO" collection
 * 
 * @package    radicacionVirtualCuentas
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRVC_CONTRATISTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_CONTRATISTA');
        $this->hasColumn('id_contratista', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('tipo_recurso', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('razon_social', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('correo', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_ciudad', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_tipo_regimen', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('mas_empleados', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('declarante_renta', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('pensionado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('embargo', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('valor_embargo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('dependiente', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('aplica_balance_contrato', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('RVC_TIPO_REGIMEN', array(
             'local' => 'id_tipo_regimen',
             'foreign' => 'id_tipo_regimen'));

        $this->hasMany('RVC_CONTRATO', array(
             'local' => 'id_contratista',
             'foreign' => 'id_contratista'));
    }
}