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

/**
 * BasePR_NOVEDAD_CDP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_cdp
 * @property integer $id_cdp
 * @property decimal $valor_novedad
 * @property integer $id_tipo_novedad
 * @property string $vigencia
 * @property timestamp $fecha
 * @property string $usuario
 * @property string $soporte
 * @property timestamp $fecha_sys
 * @property integer $id_vigencia
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer        getIdNovedadCdp()    Returns the current record's "id_novedad_cdp" value
 * @method integer        getIdCdp()           Returns the current record's "id_cdp" value
 * @method decimal        getValorNovedad()    Returns the current record's "valor_novedad" value
 * @method integer        getIdTipoNovedad()   Returns the current record's "id_tipo_novedad" value
 * @method string         getVigencia()        Returns the current record's "vigencia" value
 * @method timestamp      getFecha()           Returns the current record's "fecha" value
 * @method string         getUsuario()         Returns the current record's "usuario" value
 * @method string         getSoporte()         Returns the current record's "soporte" value
 * @method timestamp      getFechaSys()        Returns the current record's "fecha_sys" value
 * @method integer        getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method VIGENCIA       getVIGENCIA()        Returns the current record's "VIGENCIA" value
 * @method PR_NOVEDAD_CDP setIdNovedadCdp()    Sets the current record's "id_novedad_cdp" value
 * @method PR_NOVEDAD_CDP setIdCdp()           Sets the current record's "id_cdp" value
 * @method PR_NOVEDAD_CDP setValorNovedad()    Sets the current record's "valor_novedad" value
 * @method PR_NOVEDAD_CDP setIdTipoNovedad()   Sets the current record's "id_tipo_novedad" value
 * @method PR_NOVEDAD_CDP setVigencia()        Sets the current record's "vigencia" value
 * @method PR_NOVEDAD_CDP setFecha()           Sets the current record's "fecha" value
 * @method PR_NOVEDAD_CDP setUsuario()         Sets the current record's "usuario" value
 * @method PR_NOVEDAD_CDP setSoporte()         Sets the current record's "soporte" value
 * @method PR_NOVEDAD_CDP setFechaSys()        Sets the current record's "fecha_sys" value
 * @method PR_NOVEDAD_CDP setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method PR_NOVEDAD_CDP setVIGENCIA()        Sets the current record's "VIGENCIA" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_NOVEDAD_CDP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_NOVEDAD_CDP');
        $this->hasColumn('id_novedad_cdp', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_cdp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_novedad', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('id_tipo_novedad', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('soporte', 'string', 60, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 60,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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