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

/**
 * BasePR_VIGENCIA_PAC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $codigo
 * @property string $descripcion
 * @property Doctrine_Collection $PR_PAC
 * 
 * @method integer             getId()          Returns the current record's "id" value
 * @method integer             getCodigo()      Returns the current record's "codigo" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method Doctrine_Collection getPRPAC()       Returns the current record's "PR_PAC" collection
 * @method PR_VIGENCIA_PAC     setId()          Sets the current record's "id" value
 * @method PR_VIGENCIA_PAC     setCodigo()      Sets the current record's "codigo" value
 * @method PR_VIGENCIA_PAC     setDescripcion() Sets the current record's "descripcion" value
 * @method PR_VIGENCIA_PAC     setPRPAC()       Sets the current record's "PR_PAC" 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_VIGENCIA_PAC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_VIGENCIA_PAC');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 50, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('PR_PAC', array(
             'local' => 'id',
             'foreign' => 'vigencia_pac'));
    }
}