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

/**
 * BaseINTERCEROS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_mae_ter
 * @property integer $id_nat_jur
 * @property integer $id_tip_ter
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property integer $codigo
 * @property string $razon_soc
 * @property string $cam_com
 * @property string $pnombre
 * @property string $snombre
 * @property integer $estado_ter
 * @property timestamp $fecha_doc
 * @property string $papellido
 * @property string $sapellido
 * @property string $nmatricula
 * @property string $nmatriculamer
 * @property string $profesion
 * @property integer $dv
 * @property string $objetivo
 * @property Doctrine_Collection $RVC_SUPERVISOR
 * @property Doctrine_Collection $RVC_LOG
 * @property Doctrine_Collection $RVC_APOYO_SUPERVISOR
 * 
 * @method integer             getIdMaeTer()             Returns the current record's "id_mae_ter" value
 * @method integer             getIdNatJur()             Returns the current record's "id_nat_jur" value
 * @method integer             getIdTipTer()             Returns the current record's "id_tip_ter" 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 integer             getCodigo()               Returns the current record's "codigo" value
 * @method string              getRazonSoc()             Returns the current record's "razon_soc" value
 * @method string              getCamCom()               Returns the current record's "cam_com" value
 * @method string              getPnombre()              Returns the current record's "pnombre" value
 * @method string              getSnombre()              Returns the current record's "snombre" value
 * @method integer             getEstadoTer()            Returns the current record's "estado_ter" value
 * @method timestamp           getFechaDoc()             Returns the current record's "fecha_doc" value
 * @method string              getPapellido()            Returns the current record's "papellido" value
 * @method string              getSapellido()            Returns the current record's "sapellido" value
 * @method string              getNmatricula()           Returns the current record's "nmatricula" value
 * @method string              getNmatriculamer()        Returns the current record's "nmatriculamer" value
 * @method string              getProfesion()            Returns the current record's "profesion" value
 * @method integer             getDv()                   Returns the current record's "dv" value
 * @method string              getObjetivo()             Returns the current record's "objetivo" value
 * @method Doctrine_Collection getRVCSUPERVISOR()        Returns the current record's "RVC_SUPERVISOR" collection
 * @method Doctrine_Collection getRVCLOG()               Returns the current record's "RVC_LOG" collection
 * @method Doctrine_Collection getRVCAPOYOSUPERVISOR()   Returns the current record's "RVC_APOYO_SUPERVISOR" collection
 * @method INTERCEROS          setIdMaeTer()             Sets the current record's "id_mae_ter" value
 * @method INTERCEROS          setIdNatJur()             Sets the current record's "id_nat_jur" value
 * @method INTERCEROS          setIdTipTer()             Sets the current record's "id_tip_ter" value
 * @method INTERCEROS          setIdTipoDoc()            Sets the current record's "id_tipo_doc" value
 * @method INTERCEROS          setNumDoc()               Sets the current record's "num_doc" value
 * @method INTERCEROS          setCodigo()               Sets the current record's "codigo" value
 * @method INTERCEROS          setRazonSoc()             Sets the current record's "razon_soc" value
 * @method INTERCEROS          setCamCom()               Sets the current record's "cam_com" value
 * @method INTERCEROS          setPnombre()              Sets the current record's "pnombre" value
 * @method INTERCEROS          setSnombre()              Sets the current record's "snombre" value
 * @method INTERCEROS          setEstadoTer()            Sets the current record's "estado_ter" value
 * @method INTERCEROS          setFechaDoc()             Sets the current record's "fecha_doc" value
 * @method INTERCEROS          setPapellido()            Sets the current record's "papellido" value
 * @method INTERCEROS          setSapellido()            Sets the current record's "sapellido" value
 * @method INTERCEROS          setNmatricula()           Sets the current record's "nmatricula" value
 * @method INTERCEROS          setNmatriculamer()        Sets the current record's "nmatriculamer" value
 * @method INTERCEROS          setProfesion()            Sets the current record's "profesion" value
 * @method INTERCEROS          setDv()                   Sets the current record's "dv" value
 * @method INTERCEROS          setObjetivo()             Sets the current record's "objetivo" value
 * @method INTERCEROS          setRVCSUPERVISOR()        Sets the current record's "RVC_SUPERVISOR" collection
 * @method INTERCEROS          setRVCLOG()               Sets the current record's "RVC_LOG" collection
 * @method INTERCEROS          setRVCAPOYOSUPERVISOR()   Sets the current record's "RVC_APOYO_SUPERVISOR" collection
 * 
 * @package    radicacionVirtualCuentas
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseINTERCEROS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('INTERCEROS');
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_nat_jur', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tip_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('codigo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('razon_soc', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('cam_com', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('pnombre', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('snombre', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('estado_ter', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_doc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('papellido', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('sapellido', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('nmatricula', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nmatriculamer', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('profesion', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('dv', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('objetivo', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('RVC_SUPERVISOR', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasMany('RVC_LOG', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasMany('RVC_APOYO_SUPERVISOR', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));
    }
}