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

/**
 * BaseNO_TIP_NOV_KA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_nov_ka
 * @property string $codigo
 * @property string $descripcion
 * @property integer $id_tipo_contrato
 * @property integer $afecta_antigu
 * @property integer $afecta_alimen
 * @property integer $dias_patrono
 * @property integer $causa_liquidacion
 * @property integer $suspension
 * @property NO_TIPO_CONTRATO $NO_TIPO_CONTRATO
 * @property Doctrine_Collection $NO_NOVEDAD_KARDEX
 * @property Doctrine_Collection $NO_CONCEP_KA
 * 
 * @method integer             getIdTipNovKa()        Returns the current record's "id_tip_nov_ka" value
 * @method string              getCodigo()            Returns the current record's "codigo" value
 * @method string              getDescripcion()       Returns the current record's "descripcion" value
 * @method integer             getIdTipoContrato()    Returns the current record's "id_tipo_contrato" value
 * @method integer             getAfectaAntigu()      Returns the current record's "afecta_antigu" value
 * @method integer             getAfectaAlimen()      Returns the current record's "afecta_alimen" value
 * @method integer             getDiasPatrono()       Returns the current record's "dias_patrono" value
 * @method integer             getCausaLiquidacion()  Returns the current record's "causa_liquidacion" value
 * @method integer             getSuspension()        Returns the current record's "suspension" value
 * @method NO_TIPO_CONTRATO    getNOTIPOCONTRATO()    Returns the current record's "NO_TIPO_CONTRATO" value
 * @method Doctrine_Collection getNONOVEDADKARDEX()   Returns the current record's "NO_NOVEDAD_KARDEX" collection
 * @method Doctrine_Collection getNOCONCEPKA()        Returns the current record's "NO_CONCEP_KA" collection
 * @method NO_TIP_NOV_KA       setIdTipNovKa()        Sets the current record's "id_tip_nov_ka" value
 * @method NO_TIP_NOV_KA       setCodigo()            Sets the current record's "codigo" value
 * @method NO_TIP_NOV_KA       setDescripcion()       Sets the current record's "descripcion" value
 * @method NO_TIP_NOV_KA       setIdTipoContrato()    Sets the current record's "id_tipo_contrato" value
 * @method NO_TIP_NOV_KA       setAfectaAntigu()      Sets the current record's "afecta_antigu" value
 * @method NO_TIP_NOV_KA       setAfectaAlimen()      Sets the current record's "afecta_alimen" value
 * @method NO_TIP_NOV_KA       setDiasPatrono()       Sets the current record's "dias_patrono" value
 * @method NO_TIP_NOV_KA       setCausaLiquidacion()  Sets the current record's "causa_liquidacion" value
 * @method NO_TIP_NOV_KA       setSuspension()        Sets the current record's "suspension" value
 * @method NO_TIP_NOV_KA       setNOTIPOCONTRATO()    Sets the current record's "NO_TIPO_CONTRATO" value
 * @method NO_TIP_NOV_KA       setNONOVEDADKARDEX()   Sets the current record's "NO_NOVEDAD_KARDEX" collection
 * @method NO_TIP_NOV_KA       setNOCONCEPKA()        Sets the current record's "NO_CONCEP_KA" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_TIP_NOV_KA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_TIP_NOV_KA');
        $this->hasColumn('id_tip_nov_ka', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_tipo_contrato', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('afecta_antigu', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('afecta_alimen', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('dias_patrono', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('causa_liquidacion', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('suspension', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('afecta_riesgo', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('tope_dias', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('control_pago', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
         $this->hasColumn('tope_dias_anual', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        
    }

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

        $this->hasMany('NO_NOVEDAD_KARDEX', array(
             'local' => 'id_tip_nov_ka',
             'foreign' => 'id_tip_nov_ka'));

        $this->hasMany('NO_CONCEP_KA', array(
             'local' => 'id_tip_nov_ka',
             'foreign' => 'id_tip_nov_ka'));
    }
}