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

/**
 * BaseNO_DED_NOLEY
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ded_noley
 * @property integer $id_periodo
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property integer $id_concep_nomina
 * @property integer $num_cuotas
 * @property integer $cuotas_desc
 * @property decimal $valor_cuota
 * @property decimal $porcentaje_cuota
 * @property decimal $saldo
 * @property timestamp $fecha_crea
 * @property timestamp $fecha_mod
 * @property integer $id_periodo_ini
 * @property integer $id_periodo_fin
 * @property integer $id_mae_ter
 * @property integer $estado
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_2
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_3
 * @property DATOS_FUNCIONARIO $DATOS_FUNCIONARIO_4
 * @property INTERCEROS $INTERCEROS
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * @property NO_PERIODO $NO_PERIODO
 * @property NO_PERIODO $NO_PERIODO_8
 * @property NO_PERIODO $NO_PERIODO_9
 * 
 * @method integer           getIdDedNoley()          Returns the current record's "id_ded_noley" value
 * @method integer           getIdPeriodo()           Returns the current record's "id_periodo" 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           getIdConcepNomina()      Returns the current record's "id_concep_nomina" value
 * @method integer           getNumCuotas()           Returns the current record's "num_cuotas" value
 * @method integer           getCuotasDesc()          Returns the current record's "cuotas_desc" value
 * @method decimal           getValorCuota()          Returns the current record's "valor_cuota" value
 * @method decimal           getPorcentajeCuota()     Returns the current record's "porcentaje_cuota" value
 * @method decimal           getSaldo()               Returns the current record's "saldo" value
 * @method timestamp         getFechaCrea()           Returns the current record's "fecha_crea" value
 * @method timestamp         getFechaMod()            Returns the current record's "fecha_mod" value
 * @method integer           getIdPeriodoIni()        Returns the current record's "id_periodo_ini" value
 * @method integer           getIdPeriodoFin()        Returns the current record's "id_periodo_fin" value
 * @method integer           getIdMaeTer()            Returns the current record's "id_mae_ter" value
 * @method integer           getEstado()              Returns the current record's "estado" value
 * @method timestamp         getFechaAnu()            Returns the current record's "fecha_anu" value
 * @method string            getMotivoAnu()           Returns the current record's "motivo_anu" 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 INTERCEROS        getINTERCEROS()          Returns the current record's "INTERCEROS" value
 * @method NO_CONCEP_NOMINA  getNOCONCEPNOMINA()      Returns the current record's "NO_CONCEP_NOMINA" value
 * @method NO_PERIODO        getNOPERIODO()           Returns the current record's "NO_PERIODO" value
 * @method NO_PERIODO        getNOPERIODO8()          Returns the current record's "NO_PERIODO_8" value
 * @method NO_PERIODO        getNOPERIODO9()          Returns the current record's "NO_PERIODO_9" value
 * @method NO_DED_NOLEY      setIdDedNoley()          Sets the current record's "id_ded_noley" value
 * @method NO_DED_NOLEY      setIdPeriodo()           Sets the current record's "id_periodo" value
 * @method NO_DED_NOLEY      setIdTipoDoc()           Sets the current record's "id_tipo_doc" value
 * @method NO_DED_NOLEY      setNumDoc()              Sets the current record's "num_doc" value
 * @method NO_DED_NOLEY      setIdConcepNomina()      Sets the current record's "id_concep_nomina" value
 * @method NO_DED_NOLEY      setNumCuotas()           Sets the current record's "num_cuotas" value
 * @method NO_DED_NOLEY      setCuotasDesc()          Sets the current record's "cuotas_desc" value
 * @method NO_DED_NOLEY      setValorCuota()          Sets the current record's "valor_cuota" value
 * @method NO_DED_NOLEY      setPorcentajeCuota()     Sets the current record's "porcentaje_cuota" value
 * @method NO_DED_NOLEY      setSaldo()               Sets the current record's "saldo" value
 * @method NO_DED_NOLEY      setFechaCrea()           Sets the current record's "fecha_crea" value
 * @method NO_DED_NOLEY      setFechaMod()            Sets the current record's "fecha_mod" value
 * @method NO_DED_NOLEY      setIdPeriodoIni()        Sets the current record's "id_periodo_ini" value
 * @method NO_DED_NOLEY      setIdPeriodoFin()        Sets the current record's "id_periodo_fin" value
 * @method NO_DED_NOLEY      setIdMaeTer()            Sets the current record's "id_mae_ter" value
 * @method NO_DED_NOLEY      setEstado()              Sets the current record's "estado" value
 * @method NO_DED_NOLEY      setFechaAnu()            Sets the current record's "fecha_anu" value
 * @method NO_DED_NOLEY      setMotivoAnu()           Sets the current record's "motivo_anu" value
 * @method NO_DED_NOLEY      setDATOSFUNCIONARIO()    Sets the current record's "DATOS_FUNCIONARIO" value
 * @method NO_DED_NOLEY      setDATOSFUNCIONARIO2()   Sets the current record's "DATOS_FUNCIONARIO_2" value
 * @method NO_DED_NOLEY      setDATOSFUNCIONARIO3()   Sets the current record's "DATOS_FUNCIONARIO_3" value
 * @method NO_DED_NOLEY      setDATOSFUNCIONARIO4()   Sets the current record's "DATOS_FUNCIONARIO_4" value
 * @method NO_DED_NOLEY      setINTERCEROS()          Sets the current record's "INTERCEROS" value
 * @method NO_DED_NOLEY      setNOCONCEPNOMINA()      Sets the current record's "NO_CONCEP_NOMINA" value
 * @method NO_DED_NOLEY      setNOPERIODO()           Sets the current record's "NO_PERIODO" value
 * @method NO_DED_NOLEY      setNOPERIODO8()          Sets the current record's "NO_PERIODO_8" value
 * @method NO_DED_NOLEY      setNOPERIODO9()          Sets the current record's "NO_PERIODO_9" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_DED_NOLEY extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_DED_NOLEY');
        $this->hasColumn('id_ded_noley', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_periodo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_concep_nomina', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_cuotas', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('cuotas_desc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_cuota', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje_cuota', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('saldo', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_crea', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_mod', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_periodo_ini', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_periodo_fin', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_anu', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anu', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('total_ded', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('doc_soporte', 'string', 20, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('fecha_soporte', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
    }

    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' => 'num_doc',
             'foreign' => 'id_tipo_doc'));

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

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('NO_CONCEP_NOMINA', array(
             'local' => 'id_concep_nomina',
             'foreign' => 'id_concep_nomina'));

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

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

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