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

/**
 * BasePR_PAC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $vigencia
 * @property string $vigencia_mes
 * @property integer $vigencia_pac
 * @property integer $enero
 * @property integer $febrero
 * @property integer $marzo
 * @property integer $abril
 * @property integer $mayo
 * @property integer $junio
 * @property integer $julio
 * @property integer $agosto
 * @property integer $septiembre
 * @property integer $octubre
 * @property integer $noviembre
 * @property integer $diciembre
 * @property integer $valor_pac
 * @property string $usuario
 * @property timestamp $fecha
 * @property integer $id_catalogo
 * @property integer $id_nivel_agrup
 * @property PR_CATALOGO_PAC $PR_CATALOGO_PAC
 * @property PR_VIGENCIA_PAC $PR_VIGENCIA_PAC
 * 
 * @method integer         getId()              Returns the current record's "id" value
 * @method string          getVigencia()        Returns the current record's "vigencia" value
 * @method string          getVigenciaMes()     Returns the current record's "vigencia_mes" value
 * @method integer         getVigenciaPac()     Returns the current record's "vigencia_pac" value
 * @method integer         getEnero()           Returns the current record's "enero" value
 * @method integer         getFebrero()         Returns the current record's "febrero" value
 * @method integer         getMarzo()           Returns the current record's "marzo" value
 * @method integer         getAbril()           Returns the current record's "abril" value
 * @method integer         getMayo()            Returns the current record's "mayo" value
 * @method integer         getJunio()           Returns the current record's "junio" value
 * @method integer         getJulio()           Returns the current record's "julio" value
 * @method integer         getAgosto()          Returns the current record's "agosto" value
 * @method integer         getSeptiembre()      Returns the current record's "septiembre" value
 * @method integer         getOctubre()         Returns the current record's "octubre" value
 * @method integer         getNoviembre()       Returns the current record's "noviembre" value
 * @method integer         getDiciembre()       Returns the current record's "diciembre" value
 * @method integer         getValorPac()        Returns the current record's "valor_pac" value
 * @method string          getUsuario()         Returns the current record's "usuario" value
 * @method timestamp       getFecha()           Returns the current record's "fecha" value
 * @method integer         getIdCatalogo()      Returns the current record's "id_catalogo" value
 * @method integer         getIdNivelAgrup()    Returns the current record's "id_nivel_agrup" value
 * @method PR_CATALOGO_PAC getPRCATALOGOPAC()   Returns the current record's "PR_CATALOGO_PAC" value
 * @method PR_VIGENCIA_PAC getPRVIGENCIAPAC()   Returns the current record's "PR_VIGENCIA_PAC" value
 * @method PR_PAC          setId()              Sets the current record's "id" value
 * @method PR_PAC          setVigencia()        Sets the current record's "vigencia" value
 * @method PR_PAC          setVigenciaMes()     Sets the current record's "vigencia_mes" value
 * @method PR_PAC          setVigenciaPac()     Sets the current record's "vigencia_pac" value
 * @method PR_PAC          setEnero()           Sets the current record's "enero" value
 * @method PR_PAC          setFebrero()         Sets the current record's "febrero" value
 * @method PR_PAC          setMarzo()           Sets the current record's "marzo" value
 * @method PR_PAC          setAbril()           Sets the current record's "abril" value
 * @method PR_PAC          setMayo()            Sets the current record's "mayo" value
 * @method PR_PAC          setJunio()           Sets the current record's "junio" value
 * @method PR_PAC          setJulio()           Sets the current record's "julio" value
 * @method PR_PAC          setAgosto()          Sets the current record's "agosto" value
 * @method PR_PAC          setSeptiembre()      Sets the current record's "septiembre" value
 * @method PR_PAC          setOctubre()         Sets the current record's "octubre" value
 * @method PR_PAC          setNoviembre()       Sets the current record's "noviembre" value
 * @method PR_PAC          setDiciembre()       Sets the current record's "diciembre" value
 * @method PR_PAC          setValorPac()        Sets the current record's "valor_pac" value
 * @method PR_PAC          setUsuario()         Sets the current record's "usuario" value
 * @method PR_PAC          setFecha()           Sets the current record's "fecha" value
 * @method PR_PAC          setIdCatalogo()      Sets the current record's "id_catalogo" value
 * @method PR_PAC          setIdNivelAgrup()    Sets the current record's "id_nivel_agrup" value
 * @method PR_PAC          setPRCATALOGOPAC()   Sets the current record's "PR_CATALOGO_PAC" value
 * @method PR_PAC          setPRVIGENCIAPAC()   Sets the current record's "PR_VIGENCIA_PAC" 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_PAC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_PAC');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('vigencia_mes', 'string', 2, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2,
             ));
        $this->hasColumn('vigencia_pac', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('enero', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             'default' => '0 ',
             ));
        $this->hasColumn('febrero', 'integer', 38, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('marzo', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             'default' => '0 ',
             ));
        $this->hasColumn('abril', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             'default' => '0 ',
             ));
        $this->hasColumn('mayo', 'integer', 38, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('junio', 'integer', 38, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('julio', 'integer', 38, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('agosto', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             'default' => '0 ',
             ));
        $this->hasColumn('septiembre', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             'default' => '0 ',
             ));
        $this->hasColumn('octubre', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             'default' => '0 ',
             ));
        $this->hasColumn('noviembre', 'integer', 38, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('diciembre', 'integer', 38, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('valor_pac', 'integer', 38, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_catalogo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_nivel_agrup', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('PR_VIGENCIA_PAC', array(
             'local' => 'vigencia_pac',
             'foreign' => 'id'));
    }
}