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

/**
 * BaseCO_ETAPA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_etapa
 * @property string $descripcion
 * @property integer $estado
 * @property integer $aplica_tiempo
 * @property integer $aplica_numero
 * @property integer $aplica_desde_hasta
 * @property integer $aplica_oferentes
 * @property integer $aplica_adjudicatario
 * @property Doctrine_Collection $CO_ETAPA_MODALIDAD
 * 
 * @method integer             getIdEtapa()              Returns the current record's "id_etapa" value
 * @method string              getDescripcion()          Returns the current record's "descripcion" value
 * @method integer             getEstado()               Returns the current record's "estado" value
 * @method integer             getAplicaTiempo()         Returns the current record's "aplica_tiempo" value
 * @method integer             getAplicaNumero()         Returns the current record's "aplica_numero" value
 * @method integer             getAplicaDesdeHasta()     Returns the current record's "aplica_desde_hasta" value
 * @method integer             getAplicaOferentes()      Returns the current record's "aplica_oferentes" value
 * @method integer             getAplicaAdjudicatario()  Returns the current record's "aplica_adjudicatario" value
 * @method Doctrine_Collection getCOETAPAMODALIDAD()     Returns the current record's "CO_ETAPA_MODALIDAD" collection
 * @method CO_ETAPA            setIdEtapa()              Sets the current record's "id_etapa" value
 * @method CO_ETAPA            setDescripcion()          Sets the current record's "descripcion" value
 * @method CO_ETAPA            setEstado()               Sets the current record's "estado" value
 * @method CO_ETAPA            setAplicaTiempo()         Sets the current record's "aplica_tiempo" value
 * @method CO_ETAPA            setAplicaNumero()         Sets the current record's "aplica_numero" value
 * @method CO_ETAPA            setAplicaDesdeHasta()     Sets the current record's "aplica_desde_hasta" value
 * @method CO_ETAPA            setAplicaOferentes()      Sets the current record's "aplica_oferentes" value
 * @method CO_ETAPA            setAplicaAdjudicatario()  Sets the current record's "aplica_adjudicatario" value
 * @method CO_ETAPA            setCOETAPAMODALIDAD()     Sets the current record's "CO_ETAPA_MODALIDAD" 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 BaseCO_ETAPA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_ETAPA');
        $this->hasColumn('id_etapa', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('aplica_tiempo', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('aplica_numero', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('aplica_desde_hasta', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('aplica_oferentes', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('aplica_adjudicatario', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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