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

/**
 * BaseCO_SELECCION_EP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_seleccion_ep
 * @property integer $id_estudios_previos
 * @property timestamp $fecha_inicio
 * @property integer $estado
 * @property CO_ESTUDIOS_PREVIOS $CO_ESTUDIOS_PREVIOS
 * @property Doctrine_Collection $CO_SELECCION_ETAPA
 * @property Doctrine_Collection $CO_CONTRATO
 * 
 * @method integer             getIdSeleccionEp()       Returns the current record's "id_seleccion_ep" value
 * @method integer             getIdEstudiosPrevios()   Returns the current record's "id_estudios_previos" value
 * @method timestamp           getFechaInicio()         Returns the current record's "fecha_inicio" value
 * @method integer             getEstado()              Returns the current record's "estado" value
 * @method CO_ESTUDIOS_PREVIOS getCOESTUDIOSPREVIOS()   Returns the current record's "CO_ESTUDIOS_PREVIOS" value
 * @method Doctrine_Collection getCOSELECCIONETAPA()    Returns the current record's "CO_SELECCION_ETAPA" collection
 * @method Doctrine_Collection getCOCONTRATO()          Returns the current record's "CO_CONTRATO" collection
 * @method CO_SELECCION_EP     setIdSeleccionEp()       Sets the current record's "id_seleccion_ep" value
 * @method CO_SELECCION_EP     setIdEstudiosPrevios()   Sets the current record's "id_estudios_previos" value
 * @method CO_SELECCION_EP     setFechaInicio()         Sets the current record's "fecha_inicio" value
 * @method CO_SELECCION_EP     setEstado()              Sets the current record's "estado" value
 * @method CO_SELECCION_EP     setCOESTUDIOSPREVIOS()   Sets the current record's "CO_ESTUDIOS_PREVIOS" value
 * @method CO_SELECCION_EP     setCOSELECCIONETAPA()    Sets the current record's "CO_SELECCION_ETAPA" collection
 * @method CO_SELECCION_EP     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_SELECCION_EP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_SELECCION_EP');
        $this->hasColumn('id_seleccion_ep', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_estudios_previos', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_inicio', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('CO_SELECCION_ETAPA', array(
             'local' => 'id_seleccion_ep',
             'foreign' => 'id_seleccion_ep'));

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