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

/**
 * BasePR_APO_NPO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_apo_npo
 * @property integer $id_asign
 * @property string $valor
 * @property integer $id_apo
 * @property string $ano_fiscal
 * @property integer $id_vigencia
 * @property PR_APO $PR_APO
 * @property VIGENCIA $VIGENCIA
 * @property Doctrine_Collection $PR_NOV_APO
 * 
 * @method integer             getIdApoNpo()    Returns the current record's "id_apo_npo" value
 * @method integer             getIdAsign()     Returns the current record's "id_asign" value
 * @method string              getValor()       Returns the current record's "valor" value
 * @method integer             getIdApo()       Returns the current record's "id_apo" value
 * @method string              getAnoFiscal()   Returns the current record's "ano_fiscal" value
 * @method integer             getIdVigencia()  Returns the current record's "id_vigencia" value
 * @method PR_APO              getPRAPO()       Returns the current record's "PR_APO" value
 * @method VIGENCIA            getVIGENCIA()    Returns the current record's "VIGENCIA" value
 * @method Doctrine_Collection getPRNOVAPO()    Returns the current record's "PR_NOV_APO" collection
 * @method PR_APO_NPO          setIdApoNpo()    Sets the current record's "id_apo_npo" value
 * @method PR_APO_NPO          setIdAsign()     Sets the current record's "id_asign" value
 * @method PR_APO_NPO          setValor()       Sets the current record's "valor" value
 * @method PR_APO_NPO          setIdApo()       Sets the current record's "id_apo" value
 * @method PR_APO_NPO          setAnoFiscal()   Sets the current record's "ano_fiscal" value
 * @method PR_APO_NPO          setIdVigencia()  Sets the current record's "id_vigencia" value
 * @method PR_APO_NPO          setPRAPO()       Sets the current record's "PR_APO" value
 * @method PR_APO_NPO          setVIGENCIA()    Sets the current record's "VIGENCIA" value
 * @method PR_APO_NPO          setPRNOVAPO()    Sets the current record's "PR_NOV_APO" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_APO_NPO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_APO_NPO');
        $this->hasColumn('id_apo_npo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_asign', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_apo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ano_fiscal', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             '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,
             ));
    }

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

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

        $this->hasMany('PR_NOV_APO', array(
             'local' => 'id_apo_npo',
             'foreign' => 'id_apo_npo'));
    }
}