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

/**
 * BaseCO_DETALLE_EP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_detalle_ep
 * @property integer $id_estudios_previos
 * @property integer $id_campo_ep
 * @property string $valor
 * @property CO_ESTUDIOS_PREVIOS $CO_ESTUDIOS_PREVIOS
 * 
 * @method integer             getIdDetalleEp()         Returns the current record's "id_detalle_ep" value
 * @method integer             getIdEstudiosPrevios()   Returns the current record's "id_estudios_previos" value
 * @method integer             getIdCampoEp()           Returns the current record's "id_campo_ep" value
 * @method string              getValor()               Returns the current record's "valor" value
 * @method CO_ESTUDIOS_PREVIOS getCOESTUDIOSPREVIOS()   Returns the current record's "CO_ESTUDIOS_PREVIOS" value
 * @method CO_DETALLE_EP       setIdDetalleEp()         Sets the current record's "id_detalle_ep" value
 * @method CO_DETALLE_EP       setIdEstudiosPrevios()   Sets the current record's "id_estudios_previos" value
 * @method CO_DETALLE_EP       setIdCampoEp()           Sets the current record's "id_campo_ep" value
 * @method CO_DETALLE_EP       setValor()               Sets the current record's "valor" value
 * @method CO_DETALLE_EP       setCOESTUDIOSPREVIOS()   Sets the current record's "CO_ESTUDIOS_PREVIOS" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_CAMPO_OBLIGA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_CAMPO_OBLIGA');
        $this->hasColumn('id_campo_obliga', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_modalidad_sel', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_campo_ep', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('obligatorio', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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