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

/**
 * BaseCO_SELECCION_ETAPA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_seleccion_etapa
 * @property integer $id_seleccion_ep
 * @property integer $id_etapa_modalidad
 * @property timestamp $fecha
 * @property integer $numero
 * @property integer $num_oferentes
 * @property integer $num_adjudicatarios
 * @property timestamp $fecha_desde
 * @property timestamp $fecha_hasta
 * @property string $observaciones
 * @property string $adjunto
 * @property CO_ETAPA_MODALIDAD $CO_ETAPA_MODALIDAD
 * @property CO_SELECCION_EP $CO_SELECCION_EP
 * @property Doctrine_Collection $CO_SEL_OFERENTE
 * @property Doctrine_Collection $CO_SEL_ADJUDICATARIO
 * 
 * @method integer             getIdSeleccionEtapa()     Returns the current record's "id_seleccion_etapa" value
 * @method integer             getIdSeleccionEp()        Returns the current record's "id_seleccion_ep" value
 * @method integer             getIdEtapaModalidad()     Returns the current record's "id_etapa_modalidad" value
 * @method timestamp           getFecha()                Returns the current record's "fecha" value
 * @method integer             getNumero()               Returns the current record's "numero" value
 * @method integer             getNumOferentes()         Returns the current record's "num_oferentes" value
 * @method integer             getNumAdjudicatarios()    Returns the current record's "num_adjudicatarios" value
 * @method timestamp           getFechaDesde()           Returns the current record's "fecha_desde" value
 * @method timestamp           getFechaHasta()           Returns the current record's "fecha_hasta" value
 * @method string              getObservaciones()        Returns the current record's "observaciones" value
 * @method string              getAdjunto()              Returns the current record's "adjunto" value
 * @method CO_ETAPA_MODALIDAD  getCOETAPAMODALIDAD()     Returns the current record's "CO_ETAPA_MODALIDAD" value
 * @method CO_SELECCION_EP     getCOSELECCIONEP()        Returns the current record's "CO_SELECCION_EP" value
 * @method Doctrine_Collection getCOSELOFERENTE()        Returns the current record's "CO_SEL_OFERENTE" collection
 * @method Doctrine_Collection getCOSELADJUDICATARIO()   Returns the current record's "CO_SEL_ADJUDICATARIO" collection
 * @method CO_SELECCION_ETAPA  setIdSeleccionEtapa()     Sets the current record's "id_seleccion_etapa" value
 * @method CO_SELECCION_ETAPA  setIdSeleccionEp()        Sets the current record's "id_seleccion_ep" value
 * @method CO_SELECCION_ETAPA  setIdEtapaModalidad()     Sets the current record's "id_etapa_modalidad" value
 * @method CO_SELECCION_ETAPA  setFecha()                Sets the current record's "fecha" value
 * @method CO_SELECCION_ETAPA  setNumero()               Sets the current record's "numero" value
 * @method CO_SELECCION_ETAPA  setNumOferentes()         Sets the current record's "num_oferentes" value
 * @method CO_SELECCION_ETAPA  setNumAdjudicatarios()    Sets the current record's "num_adjudicatarios" value
 * @method CO_SELECCION_ETAPA  setFechaDesde()           Sets the current record's "fecha_desde" value
 * @method CO_SELECCION_ETAPA  setFechaHasta()           Sets the current record's "fecha_hasta" value
 * @method CO_SELECCION_ETAPA  setObservaciones()        Sets the current record's "observaciones" value
 * @method CO_SELECCION_ETAPA  setAdjunto()              Sets the current record's "adjunto" value
 * @method CO_SELECCION_ETAPA  setCOETAPAMODALIDAD()     Sets the current record's "CO_ETAPA_MODALIDAD" value
 * @method CO_SELECCION_ETAPA  setCOSELECCIONEP()        Sets the current record's "CO_SELECCION_EP" value
 * @method CO_SELECCION_ETAPA  setCOSELOFERENTE()        Sets the current record's "CO_SEL_OFERENTE" collection
 * @method CO_SELECCION_ETAPA  setCOSELADJUDICATARIO()   Sets the current record's "CO_SEL_ADJUDICATARIO" 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_SELECCION_ETAPA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_SELECCION_ETAPA');
        $this->hasColumn('id_seleccion_etapa', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_seleccion_ep', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_etapa_modalidad', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('numero', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_oferentes', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_adjudicatarios', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_desde', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_hasta', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('adjunto', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
    }

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

        $this->hasOne('CO_SELECCION_EP', array(
             'local' => 'id_seleccion_ep',
             'foreign' => 'id_seleccion_ep'));

        $this->hasMany('CO_SEL_OFERENTE', array(
             'local' => 'id_seleccion_etapa',
             'foreign' => 'id_seleccion_etapa'));

        $this->hasMany('CO_SEL_ADJUDICATARIO', array(
             'local' => 'id_seleccion_etapa',
             'foreign' => 'id_seleccion_etapa'));
    }
}