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

/**
 * BaseCA_ROL_GESTION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_rol_gestion
 * @property string $descripcion
 * @property integer $id_area
 * @property Doctrine_Collection $CA_ETAPA_PROCESAL
 * 
 * @method integer             getIdRolGestion()      Returns the current record's "id_rol_gestion" value
 * @method string              getDescripcion()       Returns the current record's "descripcion" value
 * @method integer             getIdArea()            Returns the current record's "id_area" value
 * @method Doctrine_Collection getCAETAPAPROCESAL()   Returns the current record's "CA_ETAPA_PROCESAL" collection
 * @method CA_ROL_GESTION      setIdRolGestion()      Sets the current record's "id_rol_gestion" value
 * @method CA_ROL_GESTION      setDescripcion()       Sets the current record's "descripcion" value
 * @method CA_ROL_GESTION      setIdArea()            Sets the current record's "id_area" value
 * @method CA_ROL_GESTION      setCAETAPAPROCESAL()   Sets the current record's "CA_ETAPA_PROCESAL" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_ROL_GESTION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_ROL_GESTION');
        $this->hasColumn('id_rol_gestion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 50, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('id_area', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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