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

/**
 * BaseCA_ETAPA_PROCESAL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_etapa_procesal
 * @property string $descripcion
 * @property integer $estado
 * @property integer $tiempo_duracion
 * @property integer $id_rol_gestion
 * @property integer $dias_alerta
 * @property CA_ROL_GESTION $CA_ROL_GESTION
 * @property Doctrine_Collection $CA_RESPONSABLE_GESTION
 * @property Doctrine_Collection $CA_REPARTO
 * 
 * @method integer             getIdEtapaProcesal()        Returns the current record's "id_etapa_procesal" value
 * @method string              getDescripcion()            Returns the current record's "descripcion" value
 * @method integer             getEstado()                 Returns the current record's "estado" value
 * @method integer             getTiempoDuracion()         Returns the current record's "tiempo_duracion" value
 * @method integer             getIdRolGestion()           Returns the current record's "id_rol_gestion" value
 * @method integer             getDiasAlerta()             Returns the current record's "dias_alerta" value
 * @method CA_ROL_GESTION      getCAROLGESTION()           Returns the current record's "CA_ROL_GESTION" value
 * @method Doctrine_Collection getCARESPONSABLEGESTION()   Returns the current record's "CA_RESPONSABLE_GESTION" collection
 * @method Doctrine_Collection getCAREPARTO()              Returns the current record's "CA_REPARTO" collection
 * @method CA_ETAPA_PROCESAL   setIdEtapaProcesal()        Sets the current record's "id_etapa_procesal" value
 * @method CA_ETAPA_PROCESAL   setDescripcion()            Sets the current record's "descripcion" value
 * @method CA_ETAPA_PROCESAL   setEstado()                 Sets the current record's "estado" value
 * @method CA_ETAPA_PROCESAL   setTiempoDuracion()         Sets the current record's "tiempo_duracion" value
 * @method CA_ETAPA_PROCESAL   setIdRolGestion()           Sets the current record's "id_rol_gestion" value
 * @method CA_ETAPA_PROCESAL   setDiasAlerta()             Sets the current record's "dias_alerta" value
 * @method CA_ETAPA_PROCESAL   setCAROLGESTION()           Sets the current record's "CA_ROL_GESTION" value
 * @method CA_ETAPA_PROCESAL   setCARESPONSABLEGESTION()   Sets the current record's "CA_RESPONSABLE_GESTION" collection
 * @method CA_ETAPA_PROCESAL   setCAREPARTO()              Sets the current record's "CA_REPARTO" 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_ETAPA_PROCESAL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_ETAPA_PROCESAL');
        $this->hasColumn('id_etapa_procesal', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 52, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 52,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('tiempo_duracion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_rol_gestion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('dias_alerta', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '3
                ',
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('CA_RESPONSABLE_GESTION', array(
             'local' => 'id_etapa_procesal',
             'foreign' => 'id_etapa_procesal'));

        $this->hasMany('CA_REPARTO', array(
             'local' => 'id_etapa_procesal',
             'foreign' => 'id_etapa_procesal'));
    }
}