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

/**
 * BaseNO_NOV_DED_ADIC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nov_dec_adic
 * @property integer $id_tipo_nov_ded_adic
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property timestamp $fecha_ini
 * @property timestamp $fecha_fin
 * @property integer $estado
 * @property integer $tipo_doc_sop
 * @property string $num_doc_sop
 * @property timestamp $fecha_doc_sop
 * @property integer $tipo_doc_cierre
 * @property string $num_doc_cierre
 * @property timestamp $fecha_doc_cierre
 * @property string $observaciones_cierre
 * @property integer $id_periodo
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_2
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_3
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_4
 * @property NO_PERIODO $NO_PERIODO
 * @property NO_TIPO_NOV_DED_ADIC $NO_TIPO_NOV_DED_ADIC
 * @property TS_TD $TS_TD
 * @property TS_TD $TS_TD_8
 * @property Doctrine_Collection $NO_NOV_CONCEPTO
 * 
 * @method integer              getIdNovDecAdic()         Returns the current record's "id_nov_dec_adic" value
 * @method integer              getIdTipoNovDedAdic()     Returns the current record's "id_tipo_nov_ded_adic" 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 timestamp            getFechaIni()             Returns the current record's "fecha_ini" value
 * @method timestamp            getFechaFin()             Returns the current record's "fecha_fin" value
 * @method integer              getEstado()               Returns the current record's "estado" value
 * @method integer              getTipoDocSop()           Returns the current record's "tipo_doc_sop" value
 * @method string               getNumDocSop()            Returns the current record's "num_doc_sop" value
 * @method timestamp            getFechaDocSop()          Returns the current record's "fecha_doc_sop" value
 * @method integer              getTipoDocCierre()        Returns the current record's "tipo_doc_cierre" value
 * @method string               getNumDocCierre()         Returns the current record's "num_doc_cierre" value
 * @method timestamp            getFechaDocCierre()       Returns the current record's "fecha_doc_cierre" value
 * @method string               getObservacionesCierre()  Returns the current record's "observaciones_cierre" value
 * @method integer              getIdPeriodo()            Returns the current record's "id_periodo" value
 * @method DATOS_FUNCIONARIO    getDATOSFUNCIONARIO()     Returns the current record's "DATOS_FUNCIONARIO" value
 * @method DATOS_FUNCIONARIO    getDATOSFUNCIONARIO2()    Returns the current record's "DATOS_FUNCIONARIO_2" value
 * @method DATOS_FUNCIONARIO    getDATOSFUNCIONARIO3()    Returns the current record's "DATOS_FUNCIONARIO_3" value
 * @method DATOS_FUNCIONARIO    getDATOSFUNCIONARIO4()    Returns the current record's "DATOS_FUNCIONARIO_4" value
 * @method NO_PERIODO           getNOPERIODO()            Returns the current record's "NO_PERIODO" value
 * @method NO_TIPO_NOV_DED_ADIC getNOTIPONOVDEDADIC()     Returns the current record's "NO_TIPO_NOV_DED_ADIC" value
 * @method TS_TD                getTSTD()                 Returns the current record's "TS_TD" value
 * @method TS_TD                getTSTD8()                Returns the current record's "TS_TD_8" value
 * @method Doctrine_Collection  getNONOVCONCEPTO()        Returns the current record's "NO_NOV_CONCEPTO" collection
 * @method NO_NOV_DED_ADIC      setIdNovDecAdic()         Sets the current record's "id_nov_dec_adic" value
 * @method NO_NOV_DED_ADIC      setIdTipoNovDedAdic()     Sets the current record's "id_tipo_nov_ded_adic" value
 * @method NO_NOV_DED_ADIC      setIdTipoDoc()            Sets the current record's "id_tipo_doc" value
 * @method NO_NOV_DED_ADIC      setNumDoc()               Sets the current record's "num_doc" value
 * @method NO_NOV_DED_ADIC      setFechaIni()             Sets the current record's "fecha_ini" value
 * @method NO_NOV_DED_ADIC      setFechaFin()             Sets the current record's "fecha_fin" value
 * @method NO_NOV_DED_ADIC      setEstado()               Sets the current record's "estado" value
 * @method NO_NOV_DED_ADIC      setTipoDocSop()           Sets the current record's "tipo_doc_sop" value
 * @method NO_NOV_DED_ADIC      setNumDocSop()            Sets the current record's "num_doc_sop" value
 * @method NO_NOV_DED_ADIC      setFechaDocSop()          Sets the current record's "fecha_doc_sop" value
 * @method NO_NOV_DED_ADIC      setTipoDocCierre()        Sets the current record's "tipo_doc_cierre" value
 * @method NO_NOV_DED_ADIC      setNumDocCierre()         Sets the current record's "num_doc_cierre" value
 * @method NO_NOV_DED_ADIC      setFechaDocCierre()       Sets the current record's "fecha_doc_cierre" value
 * @method NO_NOV_DED_ADIC      setObservacionesCierre()  Sets the current record's "observaciones_cierre" value
 * @method NO_NOV_DED_ADIC      setIdPeriodo()            Sets the current record's "id_periodo" value
 * @method NO_NOV_DED_ADIC      setDATOSFUNCIONARIO()     Sets the current record's "DATOS_FUNCIONARIO" value
 * @method NO_NOV_DED_ADIC      setDATOSFUNCIONARIO2()    Sets the current record's "DATOS_FUNCIONARIO_2" value
 * @method NO_NOV_DED_ADIC      setDATOSFUNCIONARIO3()    Sets the current record's "DATOS_FUNCIONARIO_3" value
 * @method NO_NOV_DED_ADIC      setDATOSFUNCIONARIO4()    Sets the current record's "DATOS_FUNCIONARIO_4" value
 * @method NO_NOV_DED_ADIC      setNOPERIODO()            Sets the current record's "NO_PERIODO" value
 * @method NO_NOV_DED_ADIC      setNOTIPONOVDEDADIC()     Sets the current record's "NO_TIPO_NOV_DED_ADIC" value
 * @method NO_NOV_DED_ADIC      setTSTD()                 Sets the current record's "TS_TD" value
 * @method NO_NOV_DED_ADIC      setTSTD8()                Sets the current record's "TS_TD_8" value
 * @method NO_NOV_DED_ADIC      setNONOVCONCEPTO()        Sets the current record's "NO_NOV_CONCEPTO" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_NOV_DED_ADIC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_NOV_DED_ADIC');
        $this->hasColumn('id_nov_dec_adic', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_nov_ded_adic', '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', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_ini', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('tipo_doc_sop', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc_sop', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_doc_sop', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('tipo_doc_cierre', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc_cierre', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_doc_cierre', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones_cierre', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_periodo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_2', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'num_doc'));

        $this->hasOne('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_3', array(
             'local' => 'num_doc',
             'foreign' => 'id_tipo_doc'));

        $this->hasOne('DATOS_FUNCIONARIO as DATOS_FUNCIONARIO_4', array(
             'local' => 'num_doc',
             'foreign' => 'num_doc'));

        $this->hasOne('NO_PERIODO', array(
             'local' => 'id_periodo',
             'foreign' => 'id_periodo'));

        $this->hasOne('NO_TIPO_NOV_DED_ADIC', array(
             'local' => 'id_tipo_nov_ded_adic',
             'foreign' => 'id_tipo_nov_ded_adic'));

        $this->hasOne('TS_TD', array(
             'local' => 'tipo_doc_sop',
             'foreign' => 'id'));

        $this->hasOne('TS_TD as TS_TD_8', array(
             'local' => 'tipo_doc_cierre',
             'foreign' => 'id'));

        $this->hasMany('NO_NOV_CONCEPTO', array(
             'local' => 'id_nov_dec_adic',
             'foreign' => 'id_nov_ded_adic'));
    }
}