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

/**
 * BasePR_NOV_APO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad
 * @property integer $id_obj_gasto
 * @property decimal $credito
 * @property integer $id_apo_npo
 * @property decimal $contracredito
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property PR_APO_NPO $PR_APO_NPO
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer    getIdNovedad()     Returns the current record's "id_novedad" value
 * @method integer    getIdObjGasto()    Returns the current record's "id_obj_gasto" value
 * @method decimal    getCredito()       Returns the current record's "credito" value
 * @method integer    getIdApoNpo()      Returns the current record's "id_apo_npo" value
 * @method decimal    getContracredito() Returns the current record's "contracredito" value
 * @method integer    getIdVigencia()    Returns the current record's "id_vigencia" value
 * @method string     getVigencia()      Returns the current record's "vigencia" value
 * @method PR_APO_NPO getPRAPONPO()      Returns the current record's "PR_APO_NPO" value
 * @method VIGENCIA   getVIGENCIA()      Returns the current record's "VIGENCIA" value
 * @method PR_NOV_APO setIdNovedad()     Sets the current record's "id_novedad" value
 * @method PR_NOV_APO setIdObjGasto()    Sets the current record's "id_obj_gasto" value
 * @method PR_NOV_APO setCredito()       Sets the current record's "credito" value
 * @method PR_NOV_APO setIdApoNpo()      Sets the current record's "id_apo_npo" value
 * @method PR_NOV_APO setContracredito() Sets the current record's "contracredito" value
 * @method PR_NOV_APO setIdVigencia()    Sets the current record's "id_vigencia" value
 * @method PR_NOV_APO setVigencia()      Sets the current record's "vigencia" value
 * @method PR_NOV_APO setPRAPONPO()      Sets the current record's "PR_APO_NPO" value
 * @method PR_NOV_APO 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_NOV_APO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_NOV_APO');
        $this->hasColumn('id_novedad', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('credito', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('id_apo_npo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('contracredito', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('VIGENCIA', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));
    }
}