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

/**
 * BasePR_CLASE_ACT_ADMIN
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $codigo
 * @property string $descripcion
 * @property Doctrine_Collection $TS_ACT_ADMIN_SOPORTE
 * @property Doctrine_Collection $PR_RP_COMIS
 * @property Doctrine_Collection $PR_PG
 * 
 * @method integer             getId()                   Returns the current record's "id" value
 * @method string              getCodigo()               Returns the current record's "codigo" value
 * @method string              getDescripcion()          Returns the current record's "descripcion" value
 * @method Doctrine_Collection getTSACTADMINSOPORTE()    Returns the current record's "TS_ACT_ADMIN_SOPORTE" collection
 * @method Doctrine_Collection getPRRPCOMIS()            Returns the current record's "PR_RP_COMIS" collection
 * @method Doctrine_Collection getPRPG()                 Returns the current record's "PR_PG" collection
 * @method PR_CLASE_ACT_ADMIN  setId()                   Sets the current record's "id" value
 * @method PR_CLASE_ACT_ADMIN  setCodigo()               Sets the current record's "codigo" value
 * @method PR_CLASE_ACT_ADMIN  setDescripcion()          Sets the current record's "descripcion" value
 * @method PR_CLASE_ACT_ADMIN  setTSACTADMINSOPORTE()    Sets the current record's "TS_ACT_ADMIN_SOPORTE" collection
 * @method PR_CLASE_ACT_ADMIN  setPRRPCOMIS()            Sets the current record's "PR_RP_COMIS" collection
 * @method PR_CLASE_ACT_ADMIN  setPRPG()                 Sets the current record's "PR_PG" 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_CLASE_ACT_ADMIN extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_CLASE_ACT_ADMIN');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
    }

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

        $this->hasMany('PR_RP_COMIS', array(
             'local' => 'id',
             'foreign' => 'id_clase_admin'));

        $this->hasMany('PR_PG', array(
             'local' => 'id',
             'foreign' => 'id_clase_admin'));
    }
}