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

/**
 * BaseCO_SEL_ADJUDICATARIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_sel_adjudicatario
 * @property integer $id_seleccion_etapa
 * @property integer $id_adjudicatario
 * @property CO_SELECCION_ETAPA $CO_SELECCION_ETAPA
 * @property INTERCEROS $INTERCEROS
 * 
 * @method integer              getIdSelAdjudicatario()   Returns the current record's "id_sel_adjudicatario" value
 * @method integer              getIdSeleccionEtapa()     Returns the current record's "id_seleccion_etapa" value
 * @method integer              getIdAdjudicatario()      Returns the current record's "id_adjudicatario" 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 CO_SEL_ADJUDICATARIO setIdSelAdjudicatario()   Sets the current record's "id_sel_adjudicatario" value
 * @method CO_SEL_ADJUDICATARIO setIdSeleccionEtapa()     Sets the current record's "id_seleccion_etapa" value
 * @method CO_SEL_ADJUDICATARIO setIdAdjudicatario()      Sets the current record's "id_adjudicatario" value
 * @method CO_SEL_ADJUDICATARIO setCOSELECCIONETAPA()     Sets the current record's "CO_SELECCION_ETAPA" value
 * @method CO_SEL_ADJUDICATARIO setINTERCEROS()           Sets the current record's "INTERCEROS" value
 * 
 * @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_ADJUDICATARIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_SEL_ADJUDICATARIO');
        $this->hasColumn('id_sel_adjudicatario', '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_adjudicatario', 'integer', 20, array(
             'notnull' => true,
             '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_adjudicatario',
             'foreign' => 'id_mae_ter'));
    }
}