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

/**
 * BaseCO_APORTE_EXTERNO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_aporte_externo
 * @property integer $id_estudios_previos
 * @property integer $valor
 * @property timestamp $fecha
 * @property string $observaciones
 * @property integer $id_tipo_aporte
 * @property integer $num_doc_aportante
 * @property string $nombre_razon_aportante
 * 
 * @method integer           getIdAporteExterno()        Returns the current record's "id_aporte_externo" value
 * @method integer           getIdEstudiosPrevios()      Returns the current record's "id_estudios_previos" value
 * @method integer           getValor()                  Returns the current record's "valor" value
 * @method timestamp         getFecha()                  Returns the current record's "fecha" value
 * @method string            getObservaciones()          Returns the current record's "observaciones" value
 * @method integer           getIdTipoAporte()           Returns the current record's "id_tipo_aporte" value
 * @method integer           getNumDocAportante()        Returns the current record's "num_doc_aportante" value
 * @method string            getNombreRazonAportante()   Returns the current record's "nombre_razon_aportante" value
 * @method CO_APORTE_EXTERNO setIdAporteExterno()        Sets the current record's "id_aporte_externo" value
 * @method CO_APORTE_EXTERNO setIdEstudiosPrevios()      Sets the current record's "id_estudios_previos" value
 * @method CO_APORTE_EXTERNO setValor()                  Sets the current record's "valor" value
 * @method CO_APORTE_EXTERNO setFecha()                  Sets the current record's "fecha" value
 * @method CO_APORTE_EXTERNO setObservaciones()          Sets the current record's "observaciones" value
 * @method CO_APORTE_EXTERNO setIdTipoAporte()           Sets the current record's "id_tipo_aporte" value
 * @method CO_APORTE_EXTERNO setNumDocAportante()        Sets the current record's "num_doc_aportante" value
 * @method CO_APORTE_EXTERNO setNombreRazonAportante()   Sets the current record's "nombre_razon_aportante" 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_APORTE_EXTERNO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_APORTE_EXTERNO');
        $this->hasColumn('id_aporte_externo', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_estudios_previos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_tipo_aporte', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc_aportante', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nombre_razon_aportante', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('adjunto', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('numero_doc', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}