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

/**
 * BaseCO_SEL_OFERENTE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_sel_oferente
 * @property integer $id_seleccion_etapa
 * @property integer $id_oferente
 * @property CO_SELECCION_ETAPA $CO_SELECCION_ETAPA
 * @property INTERCEROS $INTERCEROS
 * @property Doctrine_Collection $CO_CONTRATO
 * 
 * @method integer             getIdSelOferente()      Returns the current record's "id_sel_oferente" value
 * @method integer             getIdSeleccionEtapa()   Returns the current record's "id_seleccion_etapa" value
 * @method integer             getIdOferente()         Returns the current record's "id_oferente" value
 * @method CO_SELECCION_ETAPA  getCOSELECCIONETAPA()   Returns the current record's "CO_SELECCION_ETAPA" value
 * @method INTERCEROS          getINTERCEROS()         Returns the current record's "INTERCEROS" value
 * @method Doctrine_Collection getCOCONTRATO()         Returns the current record's "CO_CONTRATO" collection
 * @method CO_SEL_OFERENTE     setIdSelOferente()      Sets the current record's "id_sel_oferente" value
 * @method CO_SEL_OFERENTE     setIdSeleccionEtapa()   Sets the current record's "id_seleccion_etapa" value
 * @method CO_SEL_OFERENTE     setIdOferente()         Sets the current record's "id_oferente" value
 * @method CO_SEL_OFERENTE     setCOSELECCIONETAPA()   Sets the current record's "CO_SELECCION_ETAPA" value
 * @method CO_SEL_OFERENTE     setINTERCEROS()         Sets the current record's "INTERCEROS" value
 * @method CO_SEL_OFERENTE     setCOCONTRATO()         Sets the current record's "CO_CONTRATO" 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_SEL_OFERENTE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_SEL_OFERENTE');
        $this->hasColumn('id_sel_oferente', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_seleccion_etapa', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_oferente', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_oferente',
             'foreign' => 'id_mae_ter'));

        $this->hasMany('CO_CONTRATO', array(
             'local' => 'id_sel_oferente',
             'foreign' => 'id_sel_oferente'));
    }
}