<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('RVC_DECLARA_JURA_NOVDET', 'doctrine');

/**
 * BaseRVC_DECLARA_JURA_NOVDET
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_declara_jura_novdet
 * @property integer $id_declara_jura_nov
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property string $razon_social
 * @property integer $edad
 * @property integer $id_tipo_parentezco
 * @property RVC_DECLARA_JURA_NOV $RVC_DECLARA_JURA_NOV
 * @property TIPO_PARENTEZCO $TIPO_PARENTEZCO
 * @property TIPO_DOCUMENTO $TIPO_DOCUMENTO
 * 
 * @method integer                 getIdDeclaraJuraNovdet()    Returns the current record's "id_declara_jura_novdet" value
 * @method integer                 getIdDeclaraJuraNov()       Returns the current record's "id_declara_jura_nov" 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 integer                 getEdad()                   Returns the current record's "edad" value
 * @method integer                 getIdTipoParentezco()       Returns the current record's "id_tipo_parentezco" value
 * @method RVC_DECLARA_JURA_NOV    getRVCDECLARAJURANOV()      Returns the current record's "RVC_DECLARA_JURA_NOV" value
 * @method TIPO_PARENTEZCO         getTIPOPARENTEZCO()         Returns the current record's "TIPO_PARENTEZCO" value
 * @method TIPO_DOCUMENTO          getTIPODOCUMENTO()          Returns the current record's "TIPO_DOCUMENTO" value
 * @method RVC_DECLARA_JURA_NOVDET setIdDeclaraJuraNovdet()    Sets the current record's "id_declara_jura_novdet" value
 * @method RVC_DECLARA_JURA_NOVDET setIdDeclaraJuraNov()       Sets the current record's "id_declara_jura_nov" value
 * @method RVC_DECLARA_JURA_NOVDET setIdTipoDoc()              Sets the current record's "id_tipo_doc" value
 * @method RVC_DECLARA_JURA_NOVDET setNumDoc()                 Sets the current record's "num_doc" value
 * @method RVC_DECLARA_JURA_NOVDET setRazonSocial()            Sets the current record's "razon_social" value
 * @method RVC_DECLARA_JURA_NOVDET setEdad()                   Sets the current record's "edad" value
 * @method RVC_DECLARA_JURA_NOVDET setIdTipoParentezco()       Sets the current record's "id_tipo_parentezco" value
 * @method RVC_DECLARA_JURA_NOVDET setRVCDECLARAJURANOV()      Sets the current record's "RVC_DECLARA_JURA_NOV" value
 * @method RVC_DECLARA_JURA_NOVDET setTIPOPARENTEZCO()         Sets the current record's "TIPO_PARENTEZCO" value
 * @method RVC_DECLARA_JURA_NOVDET setTIPODOCUMENTO()          Sets the current record's "TIPO_DOCUMENTO" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseRVC_DECLARA_JURA_NOVDET extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('RVC_DECLARA_JURA_NOVDET');
        $this->hasColumn('id_declara_jura_novdet', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
        $this->hasColumn('id_declara_jura_nov', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $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('edad', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('id_tipo_parentezco', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('id_tipo_condic_depend', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('adjunto', 'string', 200, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 200,
        ));
        $this->hasColumn('fecha_nacimiento', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
    }

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

        $this->hasOne('TIPO_PARENTEZCO', array(
            'local' => 'id_tipo_parentezco',
            'foreign' => 'id_tipo_parentezco'));

        $this->hasOne('TIPO_DOCUMENTO', array(
            'local' => 'id_tipo_doc',
            'foreign' => 'id_tipo_doc'));
    }

}
